fix: assign navigation app name dynamically

This commit is contained in:
Jovan Krunić
2022-02-02 09:37:20 +00:00
parent 4615fe804b
commit 90b97339d3
2 changed files with 7 additions and 1 deletions

View File

@@ -21,6 +21,7 @@ import {
SCTranslations, SCTranslations,
} from '@openstapps/core'; } from '@openstapps/core';
import {NavigationService} from './navigation.service'; import {NavigationService} from './navigation.service';
import config from 'capacitor.config';
/** /**
* Generated class for the MenuPage page. * Generated class for the MenuPage page.
@@ -34,6 +35,11 @@ import {NavigationService} from './navigation.service';
templateUrl: 'navigation.html', templateUrl: 'navigation.html',
}) })
export class NavigationComponent implements OnInit { export class NavigationComponent implements OnInit {
/**
* Name of the app
*/
appName = config.appName;
/** /**
* Possible languages to be used for translation * Possible languages to be used for translation
*/ */

View File

@@ -7,7 +7,7 @@
</ion-buttons> </ion-buttons>
<ion-title> <ion-title>
<img src="assets/imgs/logo.png" alt="" /> <img src="assets/imgs/logo.png" alt="" />
<span class="text">StApps</span> <span class="text">{{ appName }}</span>
</ion-title> </ion-title>
</ion-toolbar> </ion-toolbar>
</ion-header> </ion-header>