Skip to content

Commit

Permalink
chore: Move SightSidebar to specific tab
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <vitor@php.rio>
  • Loading branch information
vitormattos committed Apr 1, 2024
1 parent bc5a066 commit 3a38a6f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
:subtitle="subTitle"
:active="fileName"
@close="closeSidebar">
<NcAppSidebarTab v-if="fileName"
<NcAppSidebarTab v-if="showListSigners"
id="request-signature-list-signers"
:name="fileName">
<RequestSignatureTab />
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 3a38a6f

Please sign in to comment.