Skip to content

Commit 5a39405

Browse files
authored
Merge pull request #2731 from LibreSign/backport/2729/stable29
[stable29] fix: Prevent try to load NCDialog before mounted
2 parents 74139f5 + 35eeacc commit 5a39405

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/views/Account/partials/ManagePassword.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
<FileReplaceIcon :size="20" />
4040
</template>
4141
</NcButton>
42-
<CreatePassword />
43-
<ReadCertificate />
44-
<ResetPassword />
42+
<CreatePassword v-if="mounted" />
43+
<ReadCertificate v-if="mounted" />
44+
<ResetPassword v-if="mounted" />
4545
</div>
4646
</template>
4747

@@ -83,8 +83,12 @@ export default {
8383
return {
8484
modal: '',
8585
certificateEngine: loadState('libresign', 'certificate_engine', ''),
86+
mounted: false,
8687
}
8788
},
89+
mounted() {
90+
this.mounted = true
91+
},
8892
methods: {
8993
uploadCertificate() {
9094
const input = document.createElement('input')

0 commit comments

Comments
 (0)