diff --git a/src/generic_ui/polymer/invite-user.ts b/src/generic_ui/polymer/invite-user.ts index 4ab1c661fc..1bc1a4ad2d 100644 --- a/src/generic_ui/polymer/invite-user.ts +++ b/src/generic_ui/polymer/invite-user.ts @@ -127,6 +127,19 @@ var inviteUser = { this.$.loginToInviteFriendDialog.open(); } }, + login: function(networkName :string, userName ?:string ) { + return ui.login(networkName, userName).then(() => { + if (networkName != 'Quiver') { + this.$.loginToInviteFriendDialog.close(); + if (this.closeInviteUserPanel) { + this.closeInviteUserPanel(); + } + } + ui.bringUproxyToFront(); + }).catch((e: Error) => { + console.warn('Did not log in ', e); + }); + }, loginTapped: function() { this.login(this.selectedNetworkName).then(() => { this.initInviteForNetwork(); @@ -161,6 +174,12 @@ var inviteUser = { // will be smaller than expected. this.$.loginToInviteFriendDialog.resizeHandler(); }, + getNetworkDisplayName: function(networkName :string) { + return ui.getNetworkDisplayName(networkName); + }, + isExperimentalNetwork: function(networkName :string) { + return ui.isExperimentalNetwork(networkName); + }, closeLoginDialog: function() { this.$.loginToInviteFriendDialog.close(); }, diff --git a/src/generic_ui/polymer/login-common.ts b/src/generic_ui/polymer/login-common.ts index 128265c653..05485e0872 100644 --- a/src/generic_ui/polymer/login-common.ts +++ b/src/generic_ui/polymer/login-common.ts @@ -8,7 +8,7 @@ var ui = ui_context.ui; var core = ui_context.core; var model = ui_context.model; -//TODO: remove this when we get rid of the past splash state +//TODO: remove this when we switch to roster-as-default var loginCommon = { copypaste: function() { // Logout of all other social networks before starting @@ -34,22 +34,5 @@ var loginCommon = { }); this.supportsQuiver = model.hasQuiverSupport(); }, - isExperimentalNetwork: function(networkName :string) { - return ui.isExperimentalNetwork(networkName); - }, - getNetworkDisplayName: ui.getNetworkDisplayName, - login: function(networkName :string, userName ?:string ) { - return ui.login(networkName, userName).then(() => { - if (networkName != 'Quiver') { - this.$.loginToInviteFriendDialog.close(); - if (this.closeInviteUserPanel) { - this.closeInviteUserPanel(); - } - } - ui.bringUproxyToFront(); - }).catch((e: Error) => { - console.warn('Did not log in ', e); - }); - }, }; export = loginCommon; diff --git a/src/generic_ui/polymer/splash.html b/src/generic_ui/polymer/splash.html index 23b1ac2889..035987b42f 100644 --- a/src/generic_ui/polymer/splash.html +++ b/src/generic_ui/polymer/splash.html @@ -232,42 +232,6 @@

{{ "WELCOME" | $$ }}

- -
-

Sign in to the uProxy network

- - - - - Sign In - -
- - - OR - - -
-

Sign in with a social network.

- - -
- - - OR - - -
-
- -
{{ "SET_UP_ONE_TIME" | $$ }}
-
- -

- {{ "WE_WONT_POST" | $$ }} -

- - - {{ "SUBMIT_FEEDBACK" | $$ }} - -
-
diff --git a/src/generic_ui/polymer/splash.ts b/src/generic_ui/polymer/splash.ts index 1c83d713e1..199dbc6f09 100644 --- a/src/generic_ui/polymer/splash.ts +++ b/src/generic_ui/polymer/splash.ts @@ -69,15 +69,6 @@ var splash = { window.location.reload(); } }, - loginToQuiver: function() { - model.globalSettings.quiverUserName = this.userName; - core.updateGlobalSettings(model.globalSettings); - this.login('Quiver', this.userName); - }, - loginTapped: function(event: Event, detail: Object, target: HTMLElement) { - var networkName = target.getAttribute('data-network'); - this.login(networkName); - }, enableStats: function() { model.globalSettings.statsReportingEnabled = true; core.updateGlobalSettings(model.globalSettings);