Skip to content

Commit

Permalink
fix: only show return when come from validation button
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos authored and backportbot-libresign[bot] committed Nov 15, 2024
1 parent ecc0d1b commit f73411f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/views/Validation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<h1>{{ title }}</h1>
<NcTextField v-model="myUuid" :label="legend" />
<NcButton type="primary"
@click.prevent="validate(myUuid)">
@click.prevent="clickedValidate = true;validate(myUuid)">
<template #icon>
<NcLoadingIcon v-if="hasLoading" :size="20" />
</template>
Expand Down Expand Up @@ -63,7 +63,8 @@
</div>
</div>
</div>
<NcButton type="primary"
<NcButton v-if="clickedValidate"
type="primary"
@click.prevent="goBack">
{{ t('libresign', 'Return') }}
</NcButton>
Expand Down Expand Up @@ -121,6 +122,7 @@ export default {
document: fileInfo,
documentUuid: '',
legalInformation: '',
clickedValidate: false,
}
},
computed: {
Expand Down

0 comments on commit f73411f

Please sign in to comment.