Skip to content

Commit

Permalink
Merge pull request #2102 from nextcloud/artonge/backport/stable28/2100
Browse files Browse the repository at this point in the history
[stable28] Disable image editor if accessibility switch is off
  • Loading branch information
AndyScherzinger committed Dec 19, 2023
2 parents 78c4acd + 02fbec6 commit 375841b
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 375841b

Please sign in to comment.