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 <[email protected]>
  • Loading branch information
vitormattos committed Apr 1, 2024
1 parent 94d647d commit 4f96563
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() {
this.filesStore.getFile()?.name ? true : false

Check failure on line 50 in src/Components/File/RightSidebar.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Expected an assignment or function call and instead saw an expression

Check failure on line 50 in src/Components/File/RightSidebar.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Unnecessary use of boolean literals in conditional expression
},
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 4f96563

Please sign in to comment.