File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed
assets/vue/components/installer Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change 3535
3636 <div
3737 v-if =" 'new' === installerData.installType"
38- class =" formgroup-inline"
38+ class =" formgroup-inline items-center gap-2 "
3939 >
4040 <div
4141 v-t =" 'Administrator password'"
4242 class =" field text-body-2 font-semibold"
4343 />
44- <div
45- class =" field text-body-2"
46- v-text =" installerData.stepData.passForm"
47- />
44+ <div class =" field text-body-2 flex items-center" >
45+ <span v-if =" !showAdminPass" >********</span >
46+ <span v-else >{{ installerData.stepData.passForm }}</span >
47+ <Button
48+ icon =" mdi mdi-eye"
49+ class =" p-button-text ml-2"
50+ @click =" toggleAdminPass"
51+ :aria-label =" showAdminPass ? t('Hide password') : t('Show password')"
52+ />
53+ </div >
4854 <div
4955 v-t =" 'You may want to change this'"
5056 class =" field text-body-2 text-error"
@@ -396,6 +402,11 @@ const successDialogVisible = ref(false)
396402const errorDialogVisible = ref (false )
397403const errorMessage = ref (" " )
398404
405+ const showAdminPass = ref (false )
406+ const toggleAdminPass = () => {
407+ showAdminPass .value = ! showAdminPass .value
408+ }
409+
399410function btnStep6OnClick () {
400411 loading .value = true
401412 isButtonDisabled .value = true
You can’t perform that action at this time.
0 commit comments