Skip to content

Commit 0c71c84

Browse files
committed
chore: add back the add signer to top and add an icon to this button
Signed-off-by: Vitor Mattos <[email protected]>
1 parent 4c1b7c4 commit 0c71c84

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

src/Components/RightSidebar/RequestSignatureTab.vue

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010
<NcNoteCard v-if="hasSignersWithDisabledMethods" type="warning">
1111
{{ t('libresign', 'Some signers use identification methods that have been disabled. Please remove or update them before requesting signatures.') }}
1212
</NcNoteCard>
13+
<NcButton v-if="filesStore.canAddSigner()"
14+
:variant="hasSigners ? 'secondary' : 'primary'"
15+
@click="addSigner">
16+
<template #icon>
17+
<AccountPlus :size="20" />
18+
</template>
19+
{{ t('libresign', 'Add signer') }}
20+
</NcButton>
1321
<NcCheckboxRadioSwitch v-if="showPreserveOrder"
1422
v-model="preserveOrder"
1523
type="switch"
@@ -73,14 +81,8 @@
7381
</NcActionButton>
7482
</template>
7583
</Signers>
76-
<NcFormBox v-if="filesStore.canAddSigner() || (isEnvelope && envelopeFiles.length > 0)">
77-
<NcButton v-if="filesStore.canAddSigner()"
78-
wide
79-
:variant="hasSigners ? 'secondary' : 'primary'"
80-
@click="addSigner">
81-
{{ t('libresign', 'Add signer') }}
82-
</NcButton>
83-
<NcButton v-if="isEnvelope"
84+
<NcFormBox v-if="isEnvelope">
85+
<NcButton
8486
wide
8587
type="secondary"
8688
@click="showEnvelopeFilesDialog = true">
@@ -245,6 +247,7 @@ import svgSms from '@mdi/svg/svg/message-processing.svg?raw'
245247
import svgWhatsapp from '@mdi/svg/svg/whatsapp.svg?raw'
246248
import svgXmpp from '@mdi/svg/svg/xmpp.svg?raw'
247249
250+
import AccountPlus from 'vue-material-design-icons/AccountPlus.vue'
248251
import Bell from 'vue-material-design-icons/Bell.vue'
249252
import ChartGantt from 'vue-material-design-icons/ChartGantt.vue'
250253
import Delete from 'vue-material-design-icons/Delete.vue'
@@ -310,6 +313,7 @@ export default {
310313
name: 'RequestSignatureTab',
311314
mixins: [signingOrderMixin],
312315
components: {
316+
AccountPlus,
313317
Bell,
314318
ChartGantt,
315319
Delete,

0 commit comments

Comments
 (0)