{{ 'core.login.newsitedescription' | translate }}
-
+
diff --git a/src/core/login/pages/site/site.ts b/src/core/login/pages/site/site.ts
index 77bb3eb2c..dcd6752fb 100644
--- a/src/core/login/pages/site/site.ts
+++ b/src/core/login/pages/site/site.ts
@@ -13,7 +13,7 @@
// limitations under the License.
import { Component } from '@angular/core';
-import { IonicPage, NavController, ModalController } from 'ionic-angular';
+import { IonicPage, NavController, ModalController, NavParams } from 'ionic-angular';
import { CoreAppProvider } from '@providers/app';
import { CoreSitesProvider } from '@providers/sites';
import { CoreDomUtilsProvider } from '@providers/utils/dom';
@@ -33,10 +33,14 @@ export class CoreLoginSitePage {
siteForm: FormGroup;
fixedSites: any[];
displayAsButtons = false;
+ showKeyboard = false;
- constructor(private navCtrl: NavController, fb: FormBuilder, private appProvider: CoreAppProvider,
+ constructor(navParams: NavParams, private navCtrl: NavController, fb: FormBuilder, private appProvider: CoreAppProvider,
private sitesProvider: CoreSitesProvider, private loginHelper: CoreLoginHelperProvider,
private modalCtrl: ModalController, private domUtils: CoreDomUtilsProvider) {
+
+ this.showKeyboard = !!navParams.get('showKeyboard');
+
let url = '';
// Load fixed sites if they're set.
diff --git a/src/core/login/pages/sites/sites.ts b/src/core/login/pages/sites/sites.ts
index 7e659e9c6..a1706e522 100644
--- a/src/core/login/pages/sites/sites.ts
+++ b/src/core/login/pages/sites/sites.ts
@@ -67,7 +67,7 @@ export class CoreLoginSitesPage {
* Go to the page to add a site.
*/
add(): void {
- this.loginHelper.goToAddSite(false);
+ this.loginHelper.goToAddSite(false, true);
}
/**
@@ -91,7 +91,7 @@ export class CoreLoginSitesPage {
// If there are no sites left, go to add site.
this.sitesProvider.hasSites().then((hasSites) => {
if (!hasSites) {
- this.loginHelper.goToAddSite(true);
+ this.loginHelper.goToAddSite(true, true);
}
});
}).catch((error) => {
diff --git a/src/core/login/providers/helper.ts b/src/core/login/providers/helper.ts
index 15db817c6..942fb37da 100644
--- a/src/core/login/providers/helper.ts
+++ b/src/core/login/providers/helper.ts
@@ -380,9 +380,10 @@ export class CoreLoginHelperProvider {
* If a fixed URL is configured, go to credentials instead.
*
* @param {boolean} [setRoot] True to set the new page as root, false to add it to the stack.
+ * @param {boolean} [showKeyboard] Whether to show keyboard in the new page. Only if no fixed URL set.
* @return {Promise