Merge pull request #2068 from dpalou/MOBILE-3068

Mobile 3068
main
Juan Leyva 2019-08-23 10:17:21 +01:00 committed by GitHub
commit 033b4138cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 28 additions and 11 deletions

View File

@ -5,9 +5,6 @@ $item-message-note-font-size: 75% !default;
$item-message-mine-bg: $gray-light !default; $item-message-mine-bg: $gray-light !default;
ion-app.app-root page-addon-messages-discussion { ion-app.app-root page-addon-messages-discussion {
.toolbar-title {
padding: 0;
}
ion-content { ion-content {
background-color: $gray-lighter !important; background-color: $gray-lighter !important;
@ -192,6 +189,8 @@ ion-app.app-root page-addon-messages-discussion {
} }
.toolbar-title { .toolbar-title {
padding: 0;
img { img {
@include margin-horizontal(null, 6px); @include margin-horizontal(null, 6px);
} }
@ -208,6 +207,10 @@ ion-app.app-root page-addon-messages-discussion {
ion-icon { ion-icon {
@include margin-horizontal(6px, null); @include margin-horizontal(6px, null);
} }
&.toolbar-title-ios {
justify-content: center;
}
} }
} }

View File

@ -40,6 +40,6 @@ ion-app.app-root .addon-message-discussion {
ion-app.app-root .addon-message-discussion { ion-app.app-root .addon-message-discussion {
h2 { h2 {
margin-top: 6px; margin-top: 10px;
} }
} }

View File

@ -674,8 +674,8 @@ ion-app.app-root {
border-radius: 50%; border-radius: 50%;
} }
.toolbar-ios { .header .toolbar-ios {
height: 52px; height: $toolbar-ios-height;
} }
// Footer with auto height. // Footer with auto height.

View File

@ -14,6 +14,7 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { CoreLoginHelperProvider } from './providers/helper'; import { CoreLoginHelperProvider } from './providers/helper';
import { CoreLoginSitesPageModule } from './pages/sites/sites.module';
// List of providers. // List of providers.
export const CORE_LOGIN_PROVIDERS = [ export const CORE_LOGIN_PROVIDERS = [
@ -24,6 +25,7 @@ export const CORE_LOGIN_PROVIDERS = [
declarations: [ declarations: [
], ],
imports: [ imports: [
CoreLoginSitesPageModule
], ],
providers: CORE_LOGIN_PROVIDERS providers: CORE_LOGIN_PROVIDERS
}) })

View File

@ -27,5 +27,8 @@ import { CoreDirectivesModule } from '@directives/directives.module';
IonicPageModule.forChild(CoreLoginSitesPage), IonicPageModule.forChild(CoreLoginSitesPage),
TranslateModule.forChild() TranslateModule.forChild()
], ],
entryComponents: [
CoreLoginSitesPage
]
}) })
export class CoreLoginSitesPageModule {} export class CoreLoginSitesPageModule {}

View File

@ -342,6 +342,10 @@ export class CorePushNotificationsProvider {
const win = <any> window; // This feature is only present in our fork of the plugin. const win = <any> window; // This feature is only present in our fork of the plugin.
if (CoreConfigConstants.enableanalytics && win.PushNotification && win.PushNotification.logEvent) { if (CoreConfigConstants.enableanalytics && win.PushNotification && win.PushNotification.logEvent) {
// Check if the analytics is enabled by the user.
return this.configProvider.get(CoreConstants.SETTINGS_ANALYTICS_ENABLED, true).then((enabled) => {
if (enabled) {
return new Promise((resolve, reject): void => { return new Promise((resolve, reject): void => {
win.PushNotification.logEvent(resolve, (error) => { win.PushNotification.logEvent(resolve, (error) => {
this.logger.error('Error logging firebase event', name, error); this.logger.error('Error logging firebase event', name, error);
@ -349,6 +353,8 @@ export class CorePushNotificationsProvider {
}, name, data, !!filter); }, name, data, !!filter);
}); });
} }
});
}
return Promise.resolve(); return Promise.resolve();
} }

View File

@ -492,6 +492,9 @@ export class CoreSitesProvider {
} }
return data; return data;
}, (error) => {
// Local mobile check returned an error. This only happens if the plugin is installed and it returns an error.
return rejectWithCriticalError(error);
}).then((data) => { }).then((data) => {
siteUrl = temporarySite.getURL(); siteUrl = temporarySite.getURL();