From 40540beb758f04363c232fda15cb803ec7427c73 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Mon, 1 Apr 2024 18:10:49 -0300 Subject: [PATCH 1/2] chore: Move SightSidebar to specific tab Signed-off-by: Vitor Mattos --- src/App.vue | 2 +- .../{Request => RightSidebar}/RequestSignatureTab.vue | 0 src/Components/{File => RightSidebar}/RightSidebar.vue | 5 ++++- 3 files changed, 5 insertions(+), 2 deletions(-) rename src/Components/{Request => RightSidebar}/RequestSignatureTab.vue (100%) rename src/Components/{File => RightSidebar}/RightSidebar.vue (92%) diff --git a/src/App.vue b/src/App.vue index da9e04137b..0de6be4f19 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 e5753dfac7..1f80427e1c 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') From 3828e7af992e6df238384ba31edffe49ca79626c Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Mon, 1 Apr 2024 18:55:45 -0300 Subject: [PATCH 2/2] chore: Move other tabs Signed-off-by: Vitor Mattos --- src/Components/{File => RightSidebar}/AppFilesTab.vue | 2 +- src/Components/RightSidebar/RequestSignatureTab.vue | 4 ++-- src/Components/RightSidebar/RightSidebar.vue | 5 +---- src/tab.js | 2 +- 4 files changed, 5 insertions(+), 8 deletions(-) rename src/Components/{File => RightSidebar}/AppFilesTab.vue (90%) diff --git a/src/Components/File/AppFilesTab.vue b/src/Components/RightSidebar/AppFilesTab.vue similarity index 90% rename from src/Components/File/AppFilesTab.vue rename to src/Components/RightSidebar/AppFilesTab.vue index 2192967970..760a09f365 100644 --- a/src/Components/File/AppFilesTab.vue +++ b/src/Components/RightSidebar/AppFilesTab.vue @@ -8,7 +8,7 @@