Add condition for loading cred translations

This commit is contained in:
Iván Ovejero 2021-12-02 10:44:56 +01:00
parent 2855492de4
commit 76f14505eb

View file

@ -129,8 +129,10 @@ export default mixins(renderText, restApi).extend({
}, },
}, },
async beforeMount() { async beforeMount() {
await this.findCredentialTextRenderKeys(); if (this.$store.getters.defaultLocale !== 'en') {
await this.addNodeTranslationForCredential(); await this.findCredentialTextRenderKeys();
await this.addNodeTranslationForCredential();
}
}, },
computed: { computed: {
appName(): string { appName(): string {