Skip to content

Commit

Permalink
Bump to @nextcloud/vue@6.0.0-beta.3
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Aug 19, 2022
1 parent a2fb110 commit 32698b1
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@nextcloud/logger": "^2.2.1",
"@nextcloud/paths": "^2.1.0",
"@nextcloud/router": "^2.0.0",
"@nextcloud/vue": "^6.0.0-beta.2",
"@nextcloud/vue": "^6.0.0-beta.3",
"@skjnldsv/vue-plyr": "^7.2.0",
"camelcase": "^7.0.0",
"debounce": "^1.2.1",
Expand Down
28 changes: 14 additions & 14 deletions src/views/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
-->

<template>
<Modal v-if="initiated || currentFile.modal"
<NcModal v-if="initiated || currentFile.modal"
id="viewer"
size="full"
:class="{'icon-loading': !currentFile.loaded && !currentFile.failed,
Expand All @@ -46,27 +46,27 @@
@next="next">
<!-- ACTIONS -->
<template #actions>
<ActionButton v-if="Sidebar && !isSidebarShown"
<NcActionButton v-if="Sidebar && !isSidebarShown"
:close-after-click="true"
icon="icon-menu-sidebar"
@click="showSidebar">
{{ t('viewer', 'Open sidebar') }}
</ActionButton>
<ActionLink v-if="canDownload"
</NcActionButton>
<NcActionLink v-if="canDownload"
:download="currentFile.basename"
:close-after-click="true"
:href="currentFile.davPath">
<template #icon>
<Download :size="24" />
</template>
{{ t('viewer', 'Download') }}
</ActionLink>
<ActionButton v-if="canDelete"
</NcActionLink>
<NcActionButton v-if="canDelete"
:close-after-click="true"
icon="icon-delete"
@click="onDelete">
{{ t('viewer', 'Delete') }}
</ActionButton>
</NcActionButton>
</template>

<div class="viewer__content" @click.self.exact="close">
Expand Down Expand Up @@ -113,7 +113,7 @@
class="hidden-visually"
:name="nextFile.basename" />
</div>
</Modal>
</NcModal>
</template>

<script>
Expand All @@ -124,10 +124,10 @@ import '@nextcloud/dialogs/styles/toast.scss'
import { showError } from '@nextcloud/dialogs'
import { subscribe, unsubscribe } from '@nextcloud/event-bus'

import ActionButton from '@nextcloud/vue/dist/Components/ActionButton.js'
import ActionLink from '@nextcloud/vue/dist/Components/ActionLink.js'
import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js'
import NcActionLink from '@nextcloud/vue/dist/Components/NcActionLink.js'
import isFullscreen from '@nextcloud/vue/dist/Mixins/isFullscreen.js'
import Modal from '@nextcloud/vue/dist/Components/Modal.js'
import NcModal from '@nextcloud/vue/dist/Components/NcModal.js'

import { extractFilePaths, sortCompare } from '../utils/fileUtils.js'
import { getRootPath } from '../utils/davUtils.js'
Expand All @@ -147,9 +147,9 @@ export default {
name: 'Viewer',

components: {
ActionButton,
ActionLink,
Modal,
NcActionButton,
NcActionLink,
NcModal,
Error,
Download,
},
Expand Down

0 comments on commit 32698b1

Please sign in to comment.