diff --git a/generators/vue/templates/src/main/webapp/app/account/login.service.ts.ejs b/generators/vue/templates/src/main/webapp/app/account/login.service.ts.ejs index a9e8e8251a86..5c2aba203ece 100644 --- a/generators/vue/templates/src/main/webapp/app/account/login.service.ts.ejs +++ b/generators/vue/templates/src/main/webapp/app/account/login.service.ts.ejs @@ -7,7 +7,7 @@ import axios, { type AxiosPromise } from 'axios'; export default class LoginService { <%_ if (!authenticationTypeOauth2) { _%> - private emit: (event: string, ...args: any[]) => void; + private readonly emit: (event: string, ...args: any[]) => void; constructor({ emit }: { emit: (event: string, ...args: any[]) => void }) { this.emit = emit; diff --git a/generators/vue/templates/src/main/webapp/app/locale/translation.service.ts.ejs b/generators/vue/templates/src/main/webapp/app/locale/translation.service.ts.ejs index 3c8acfc8d8ef..3b119d56cc95 100644 --- a/generators/vue/templates/src/main/webapp/app/locale/translation.service.ts.ejs +++ b/generators/vue/templates/src/main/webapp/app/locale/translation.service.ts.ejs @@ -4,7 +4,7 @@ import dayjs from 'dayjs'; import languages from '@/shared/config/languages'; export default class TranslationService { - private i18n: Composer; + private readonly i18n: Composer; private languages = languages(); constructor(i18n: Composer) {