Skip to content

Commit c0ef748

Browse files
committed
Merge branch 'master' of github.com:chamilo/chamilo-lms
2 parents 102a62c + e9ca2e3 commit c0ef748

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

assets/vue/components/installer/Step6.vue

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,22 @@
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)
396402
const errorDialogVisible = ref(false)
397403
const errorMessage = ref("")
398404
405+
const showAdminPass = ref(false)
406+
const toggleAdminPass = () => {
407+
showAdminPass.value = !showAdminPass.value
408+
}
409+
399410
function btnStep6OnClick() {
400411
loading.value = true
401412
isButtonDisabled.value = true

0 commit comments

Comments
 (0)