Skip to content

Commit

Permalink
✏️ Update dialog title
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraHuang22 committed Oct 17, 2023
1 parent fda417d commit 441dfa7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion components/IscnRegisterForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@
>
<Label
class="w-min mb-[16px]"
:text="$t('IscnRegisterForm.title.editAuthor')"
:text="authorDialogTitle"
tag="div"
preset="p5"
valign="middle"
Expand Down Expand Up @@ -815,6 +815,12 @@ export default class IscnRegisterForm extends Vue {
return 'CreativeWork'
}
get authorDialogTitle() {
return this.currentAuthorDialogType === AuthorDialogType.author
? this.$t('IscnRegisterForm.title.editAuthor')
: this.$t('IscnRegisterForm.title.editStakeholder')
}
get formattedIpfs() {
return this.$t('IscnRegisterForm.ipfs.link', { hash: this.ipfsHash })
}
Expand Down
3 changes: 2 additions & 1 deletion locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@
"IscnRegisterForm.signDialog.sign.arweave.upload": "Please sign to upload to Arweave",
"IscnRegisterForm.signDialog.sign.arweave.uploading": "Depending on the file size, it may take several minutes.\n You will be requested to sign again before finishing.",
"IscnRegisterForm.signDialog.sign.iscn.register": "Please sign to register ISCN record",
"IscnRegisterForm.title.editAuthor": "Edit Author",
"IscnRegisterForm.title.editAuthor": "Add Author",
"IscnRegisterForm.title.editStakeholder": "Edit Stakeholder",
"IscnRegisterForm.title.ready": "File Ready",
"IscnRegisterForm.warning.exceeded": "Character limit exceeded ({current}/{limit})",
"IscnRegisterForm.warning.exist": "This tag already exists",
Expand Down

0 comments on commit 441dfa7

Please sign in to comment.