diff --git a/src/i18n/langs/en.json b/src/i18n/langs/en.json index 87851162a..727d8b582 100644 --- a/src/i18n/langs/en.json +++ b/src/i18n/langs/en.json @@ -1714,6 +1714,7 @@ "UpdateNodeAssetHardwareInfo": "Update node asset hardware information" }, "users": { + "Set": "Set", "Login": "Users login", "InviteSuccess": "Invite success", "FileEncryptionPassword": "File encryption password", @@ -2100,4 +2101,4 @@ "PublishStatus": "Publish status", "NoPublished": "Unpublished" } -} \ No newline at end of file +} diff --git a/src/i18n/langs/ja.json b/src/i18n/langs/ja.json index 17be3d7b8..3a2ebfcbc 100644 --- a/src/i18n/langs/ja.json +++ b/src/i18n/langs/ja.json @@ -1706,6 +1706,7 @@ "UpdateNodeAssetHardwareInfo": "ノード資産ハードウェア情報の更新" }, "users": { + "Set": "設定", "Login": "ユーザー登録", "InviteSuccess": "成功招待", "FileEncryptionPassword": "ファイル暗号化パスワード", @@ -2092,4 +2093,4 @@ "PublishStatus": "投稿ステータス", "NoPublished": "未発表" } -} \ No newline at end of file +} diff --git a/src/i18n/langs/zh.json b/src/i18n/langs/zh.json index 86e1b8cf6..7da5a0622 100644 --- a/src/i18n/langs/zh.json +++ b/src/i18n/langs/zh.json @@ -1697,6 +1697,7 @@ "UpdateNodeAssetHardwareInfo": "更新节点资产硬件信息" }, "users": { + "Set": "已设置", "Login": "用户登录", "InviteSuccess": "邀请成功", "FileEncryptionPassword": "文件加密密码", diff --git a/src/views/profile/ProfileUpdate/SecretKeyUpdate.vue b/src/views/profile/ProfileUpdate/SecretKeyUpdate.vue index dae874e90..382cddf8e 100644 --- a/src/views/profile/ProfileUpdate/SecretKeyUpdate.vue +++ b/src/views/profile/ProfileUpdate/SecretKeyUpdate.vue @@ -31,8 +31,13 @@ export default { data() { return { url: '/api/v1/users/profile/secret-key/', - fields: ['new_secret_key', 'new_secret_key_again'], + fields: ['has_secret_key', 'new_secret_key', 'new_secret_key_again'], fieldsMeta: { + has_secret_key: { + label: this.$t('users.Set'), + type: 'switch', + disabled: true + }, new_secret_key: { label: this.$t('users.NewPassword'), el: { @@ -55,6 +60,7 @@ export default { onPerformSuccess() { this.$refs.GenericCreateUpdateForm.$refs.form.$refs.dataForm.resetForm('form') this.$message.success(this.$tc('common.updateSuccessMsg')) + this.$store.commit('common/reload') } } }