forked from CIT/Vmeda.Online
		
	MOBILE-3119 settings: Show site URL on about page
This commit is contained in:
		
							parent
							
								
									6964c01c77
								
							
						
					
					
						commit
						0e9b3dcbe1
					
				| @ -23,6 +23,14 @@ | ||||
|         <ion-item text-wrap> | ||||
|             <p><a [href]="privacyPolicy" core-link auto-login="no">{{ privacyPolicy }}</a></p> | ||||
|         </ion-item> | ||||
|     </ion-item-group> | ||||
|         <ion-item-group *ngIf="siteUrl"> | ||||
|         <ion-item-divider text-wrap> | ||||
|             {{ 'core.login.siteurl' | translate }}<ng-container *ngIf="isPrefixedUrl"> *</ng-container> | ||||
|         </ion-item-divider> | ||||
|         <ion-item text-wrap> | ||||
|             <p><a [href]="siteUrl" core-link auto-login="yes">{{ siteUrl }}</a></p> | ||||
|         </ion-item> | ||||
|     </ion-item-group> | ||||
|     <ion-item-group> | ||||
|         <ion-item-divider text-wrap> | ||||
|  | ||||
| @ -55,6 +55,8 @@ export class CoreSettingsAboutPage { | ||||
|     storageType: string; | ||||
|     localNotifAvailable: string; | ||||
|     pushId: string; | ||||
|     siteUrl: string; | ||||
|     isPrefixedUrl: boolean; | ||||
| 
 | ||||
|     constructor(platform: Platform, device: Device, appProvider: CoreAppProvider, fileProvider: CoreFileProvider, | ||||
|             initDelegate: CoreInitDelegate, langProvider: CoreLangProvider, sitesProvider: CoreSitesProvider, | ||||
| @ -114,5 +116,9 @@ export class CoreSettingsAboutPage { | ||||
| 
 | ||||
|         this.localNotifAvailable = localNotificationsProvider.isAvailable() ? 'core.yes' : 'core.no'; | ||||
|         this.pushId = pushNotificationsProvider.getPushId(); | ||||
| 
 | ||||
|         this.siteUrl = (currentSite && currentSite.getURL()) || | ||||
|             (typeof CoreConfigConstants.siteurl == 'string' && CoreConfigConstants.siteurl); | ||||
|         this.isPrefixedUrl = !!CoreConfigConstants.siteurl; | ||||
|     } | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user