diff --git a/src/App.vue b/src/App.vue index da9e04137..0de6be4f1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -92,7 +92,7 @@ import NcAppContent from '@nextcloud/vue/dist/Components/NcAppContent.js' import NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent.js' import LogoLibreSign from './../img/logo-gray.svg' import CroppedLayoutSettings from './Components/Settings/CroppedLayoutSettings.vue' -import RightSidebar from './Components/File/RightSidebar.vue' +import RightSidebar from './Components/RightSidebar/RightSidebar.vue' import { loadState } from '@nextcloud/initial-state' import FileSignIcon from 'vue-material-design-icons/FileSign.vue' import FolderIcon from 'vue-material-design-icons/Folder.vue' diff --git a/src/Components/Request/RequestSignatureTab.vue b/src/Components/RightSidebar/RequestSignatureTab.vue similarity index 100% rename from src/Components/Request/RequestSignatureTab.vue rename to src/Components/RightSidebar/RequestSignatureTab.vue diff --git a/src/Components/File/RightSidebar.vue b/src/Components/RightSidebar/RightSidebar.vue similarity index 92% rename from src/Components/File/RightSidebar.vue rename to src/Components/RightSidebar/RightSidebar.vue index e5753dfac..1f80427e1 100644 --- a/src/Components/File/RightSidebar.vue +++ b/src/Components/RightSidebar/RightSidebar.vue @@ -4,7 +4,7 @@ :subtitle="subTitle" :active="fileName" @close="closeSidebar"> - @@ -49,6 +49,9 @@ export default { showListSigners() { return !!this.filesStore.getFile()?.name }, + showSign() { + return this.signStore.document.uuid.length > 0 + }, closeSidebar() { this.filesStore.selectFile() this.$emit('close')