We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d68c453 commit 3961686Copy full SHA for 3961686
generators/vue/templates/src/main/webapp/app/core/jhi-navbar/jhi-navbar.component.ts.ejs
@@ -59,8 +59,8 @@ export default defineComponent({
59
const version = `v${APP_VERSION}`;
60
const hasAnyAuthorityValues: Ref<any> = ref({});
61
62
- const openAPIEnabled = computed(() => store.activeProfiles.indexOf('api-docs') > -1);
63
- const inProduction = computed(() => store.activeProfiles.indexOf('prod') > -1);
+ const openAPIEnabled = computed(() => store.activeProfiles.includes('api-docs'));
+ const inProduction = computed(() => store.activeProfiles.includes('prod'));
64
const authenticated = computed(() => store.authenticated);
65
66
const subIsActive = (input: string | string[]) => {
0 commit comments