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 5ea90c5 commit 12469d4
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 @@ -12,7 +12,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 @@ -67,7 +67,8 @@
</div>
</div>
</div>
<NcButton type="primary"
<NcButton v-if="clickedValidate"
type="primary"
@click.prevent="goBack">
{{ t('libresign', 'Return') }}
</NcButton>
Expand Down Expand Up @@ -125,6 +126,7 @@ export default {
document: fileInfo,
documentUuid: '',
legalInformation: '',
clickedValidate: false,
}
},
computed: {
Expand Down

0 comments on commit 12469d4

Please sign in to comment.