|
|
@ -63,7 +63,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
</BreadCrumbs> |
|
|
</BreadCrumbs> |
|
|
|
|
|
|
|
|
<NcButton v-if="filesListWidth >= 512" |
|
|
|
|
|
|
|
|
<NcButton v-if="filesListWidth >= 512 && enableGridView" |
|
|
:aria-label="gridViewButtonLabel" |
|
|
:aria-label="gridViewButtonLabel" |
|
|
:title="gridViewButtonLabel" |
|
|
:title="gridViewButtonLabel" |
|
|
class="files-list__header-grid-button" |
|
|
class="files-list__header-grid-button" |
|
|
@ -132,6 +132,7 @@ import { showError } from '@nextcloud/dialogs' |
|
|
import { translate, translatePlural } from '@nextcloud/l10n' |
|
|
import { translate, translatePlural } from '@nextcloud/l10n' |
|
|
import { Type } from '@nextcloud/sharing' |
|
|
import { Type } from '@nextcloud/sharing' |
|
|
import { UploadPicker } from '@nextcloud/upload' |
|
|
import { UploadPicker } from '@nextcloud/upload' |
|
|
|
|
|
import { loadState } from '@nextcloud/initial-state' |
|
|
import { defineComponent } from 'vue' |
|
|
import { defineComponent } from 'vue' |
|
|
|
|
|
|
|
|
import LinkIcon from 'vue-material-design-icons/Link.vue' |
|
|
import LinkIcon from 'vue-material-design-icons/Link.vue' |
|
|
@ -193,6 +194,9 @@ export default defineComponent({ |
|
|
const uploaderStore = useUploaderStore() |
|
|
const uploaderStore = useUploaderStore() |
|
|
const userConfigStore = useUserConfigStore() |
|
|
const userConfigStore = useUserConfigStore() |
|
|
const viewConfigStore = useViewConfigStore() |
|
|
const viewConfigStore = useViewConfigStore() |
|
|
|
|
|
|
|
|
|
|
|
const enableGridView = (loadState('core', 'config', [])['enable_non-accessible_features'] ?? true) |
|
|
|
|
|
|
|
|
return { |
|
|
return { |
|
|
filesStore, |
|
|
filesStore, |
|
|
pathsStore, |
|
|
pathsStore, |
|
|
@ -200,6 +204,7 @@ export default defineComponent({ |
|
|
uploaderStore, |
|
|
uploaderStore, |
|
|
userConfigStore, |
|
|
userConfigStore, |
|
|
viewConfigStore, |
|
|
viewConfigStore, |
|
|
|
|
|
enableGridView, |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|