Skip to content

Commit

Permalink
fix: Change "Save" button naming (snapshot-labs#4085)
Browse files Browse the repository at this point in the history
* Change button naming

* Remove redundant optional chaining
  • Loading branch information
samuveth authored Jul 22, 2023
1 parent f6652fb commit 335f6f2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/ModalPlugins.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ watch(open, () => {
primary
@click="handleSubmit"
>
{{ Object.keys(plugin).length ? $t('save') : $t('add') }}
{{ Object.keys(plugin).length ? $t('applyChanges') : $t('add') }}
</BaseButton>
</template>
</BaseModal>
Expand Down
4 changes: 2 additions & 2 deletions src/components/ModalTreasury.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function handleSubmit() {
}
watch(open, () => {
if (props.treasury?.name) {
if (props.treasury.name) {
input.value = props.treasury;
} else {
input.value = {
Expand Down Expand Up @@ -95,7 +95,7 @@ watch(open, () => {
primary
@click="handleSubmit"
>
{{ $t('save') }}
{{ treasury.name ? $t('applyChanges') : $t('add') }}
</BaseButton>
</template>
</BaseModal>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ModalValidation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ watch(showStrategies, () => {
</div>
<template v-if="input.name" #footer>
<BaseButton class="w-full" primary @click="handleSubmit">
{{ $t('save') }}
{{ $t('applyChanges') }}
</BaseButton>
</template>
</BaseModal>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ModalVoteValidation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ watch(showStrategies, () => {
</div>
<template v-if="input.name" #footer>
<BaseButton class="w-full" primary @click="handleSubmit">
{{ $t('save') }}
{{ $t('applyChanges') }}
</BaseButton>
</template>
</BaseModal>
Expand Down
1 change: 1 addition & 0 deletions src/locales/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"poweredBy": "Powered by",
"results": "Results",
"failed": "Failed",
"applyChanges": "Apply changes",
"resultsError": "Results could not be calculated. This is often due to a misconfigured strategy or an unresponsive RPC node involved in the strategy.",
"ticketWithAnyOrBasicError": "In order to use the \"ticket\" strategy you are required to set a voting validation strategy. This combination reduces the risk of spam and sybil attacks. {article}",
"ticketWithAnyOrBasicErrorSetup": "Use of the ticket strategy requires setting a voting validation strategy. To continue go one step back and select the \"One person, one vote\" option. {article}",
Expand Down

0 comments on commit 335f6f2

Please sign in to comment.