Skip to content

Commit 9be1a6c

Browse files
committed
fix: enforce strict upload ref invocation
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent f642728 commit 9be1a6c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/views/Account/partials/ManagePassword.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
-->
55
<template>
66
<div class="user-display-password">
7-
<NcButton :wide="true"
8-
@click="$refs.uploadCertificate.triggerUpload()">
7+
<NcButton v-if="mounted"
8+
:wide="true"
9+
@click="triggerUploadCertificate">
910
{{ t('libresign', 'Upload certificate') }}
1011
<template #icon>
1112
<NcIconSvgWrapper :path="mdiCloudUpload" :size="20" />
@@ -83,7 +84,9 @@ export default {
8384
NcButton,
8485
NcIconSvgWrapper,
8586
CreatePassword,
87+
ReadCertificate,
8688
ResetPassword,
89+
UploadCertificate,
8790
},
8891
setup() {
8992
const signMethodsStore = useSignMethodsStore()
@@ -109,6 +112,9 @@ export default {
109112
},
110113
methods: {
111114
t,
115+
triggerUploadCertificate() {
116+
this.$refs.uploadCertificate.triggerUpload()
117+
},
112118
onCertificateUploaded() {
113119
this.$emit('certificate:uploaded')
114120
},

0 commit comments

Comments
 (0)