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> |         <ion-item text-wrap> | ||||||
|             <p><a [href]="privacyPolicy" core-link auto-login="no">{{ privacyPolicy }}</a></p> |             <p><a [href]="privacyPolicy" core-link auto-login="no">{{ privacyPolicy }}</a></p> | ||||||
|         </ion-item> |         </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-group> |     <ion-item-group> | ||||||
|         <ion-item-divider text-wrap> |         <ion-item-divider text-wrap> | ||||||
|  | |||||||
| @ -55,6 +55,8 @@ export class CoreSettingsAboutPage { | |||||||
|     storageType: string; |     storageType: string; | ||||||
|     localNotifAvailable: string; |     localNotifAvailable: string; | ||||||
|     pushId: string; |     pushId: string; | ||||||
|  |     siteUrl: string; | ||||||
|  |     isPrefixedUrl: boolean; | ||||||
| 
 | 
 | ||||||
|     constructor(platform: Platform, device: Device, appProvider: CoreAppProvider, fileProvider: CoreFileProvider, |     constructor(platform: Platform, device: Device, appProvider: CoreAppProvider, fileProvider: CoreFileProvider, | ||||||
|             initDelegate: CoreInitDelegate, langProvider: CoreLangProvider, sitesProvider: CoreSitesProvider, |             initDelegate: CoreInitDelegate, langProvider: CoreLangProvider, sitesProvider: CoreSitesProvider, | ||||||
| @ -114,5 +116,9 @@ export class CoreSettingsAboutPage { | |||||||
| 
 | 
 | ||||||
|         this.localNotifAvailable = localNotificationsProvider.isAvailable() ? 'core.yes' : 'core.no'; |         this.localNotifAvailable = localNotificationsProvider.isAvailable() ? 'core.yes' : 'core.no'; | ||||||
|         this.pushId = pushNotificationsProvider.getPushId(); |         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