Skip to content

Commit

Permalink
chore: Rename request sign tab
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <vitor@php.rio>
  • Loading branch information
vitormattos authored and backportbot-libresign[bot] committed Apr 1, 2024
1 parent 3e29bf8 commit 4fc8bf8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/Components/File/AppFilesTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
<h3 v-if="filesStore.getSubtitle()">
{{ filesStore.getSubtitle() }}
</h3>
<RequestSignature />
<RequestSignatureTab />
</div>
</template>

<script>
import RequestSignature from '../Request/RequestSignature.vue'
import RequestSignatureTab from '../Request/RequestSignatureTab.vue'
import { useFilesStore } from '../../store/files.js'
export default {
name: 'AppFilesTab',
components: {
RequestSignature,
RequestSignatureTab,
},
setup() {
const filesStore = useFilesStore()
Expand Down
13 changes: 9 additions & 4 deletions src/Components/File/RightSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,29 @@
<NcAppSidebarTab v-if="fileName"
id="request-signature-list-signers"
:name="fileName">
<RequestSignature />
<RequestSignatureTab />
</NcAppSidebarTab>
</NcAppSidebar>
</template>

<script>
import NcAppSidebar from '@nextcloud/vue/dist/Components/NcAppSidebar.js'
import NcAppSidebarTab from '@nextcloud/vue/dist/Components/NcAppSidebarTab.js'
import RequestSignature from '../Request/RequestSignature.vue'
import RequestSignatureTab from '../Request/RequestSignatureTab.vue'
import { useFilesStore } from '../../store/files.js'
import { useSignStore } from '../../store/sign.js'
export default {
name: 'RightSidebar',
components: {
NcAppSidebar,
NcAppSidebarTab,
RequestSignature,
RequestSignatureTab,
},
setup() {
const filesStore = useFilesStore()
return { filesStore }
const signStore = useSignStore()
return { filesStore, signStore }
},
computed: {
fileName() {
Expand All @@ -44,6 +46,9 @@ export default {
},
},
methods: {
showListSigners() {
return !!this.filesStore.getFile()?.name
},
closeSidebar() {
this.filesStore.selectFile()
this.$emit('close')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ import { useFilesStore } from '../../store/files.js'
import { useSignStore } from '../../store/sign.js'
export default {
name: 'RequestSignature',
name: 'RequestSignatureTab',
components: {
NcActionButton,
NcButton,
Expand Down

0 comments on commit 4fc8bf8

Please sign in to comment.