Skip to content

Commit

Permalink
Merge pull request #2100 from nextcloud/artonge/feat/disable_editor_a…
Browse files Browse the repository at this point in the history
…ccessibility_switch

Disable image editor if accessibility switch is off
  • Loading branch information
artonge authored Dec 19, 2023
2 parents 464ca47 + cd63f6b commit 8f6cb61
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/viewer-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/viewer-main.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/views/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ import EyeSvg from '@mdi/svg/svg/eye.svg?raw'
import Fullscreen from 'vue-material-design-icons/Fullscreen.vue'
import FullscreenExit from 'vue-material-design-icons/FullscreenExit.vue'
import Pencil from 'vue-material-design-icons/Pencil.vue'
import { loadState } from '@nextcloud/initial-state'

// Dynamic loading
const NcModal = () => import(
Expand Down Expand Up @@ -384,6 +385,7 @@ export default {
&& this.currentFile?.permissions?.includes('W')
&& this.isImage
&& !this.comparisonFile
&& (loadState('core', 'config', [])['enable_non-accessible_features'] ?? true)
},

modalClass() {
Expand Down

0 comments on commit 8f6cb61

Please sign in to comment.