File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/views/Account/partials Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 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 },
You can’t perform that action at this time.
0 commit comments