Skip to content

Commit

Permalink
Merge pull request #2729 from LibreSign/fix/prevent-try-to-load-ncdia…
Browse files Browse the repository at this point in the history
…log-before-mouunted

fix: Prevent try to load NCDialog before mounted
  • Loading branch information
vitormattos authored Apr 12, 2024
2 parents 7e6fcf9 + c135124 commit 1634642
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/views/Account/partials/ManagePassword.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
<FileReplaceIcon :size="20" />
</template>
</NcButton>
<CreatePassword />
<ReadCertificate />
<ResetPassword />
<CreatePassword v-if="mounted" />
<ReadCertificate v-if="mounted" />
<ResetPassword v-if="mounted" />
</div>
</template>

Expand Down Expand Up @@ -83,8 +83,12 @@ export default {
return {
modal: '',
certificateEngine: loadState('libresign', 'certificate_engine', ''),
mounted: false,
}
},
mounted() {
this.mounted = true
},
methods: {
uploadCertificate() {
const input = document.createElement('input')
Expand Down

0 comments on commit 1634642

Please sign in to comment.