diff --git a/client/src/www/app/app.ts b/client/src/www/app/app.ts index e5802c06338..341d9f3eb3e 100644 --- a/client/src/www/app/app.ts +++ b/client/src/www/app/app.ts @@ -122,7 +122,7 @@ export class App { document.addEventListener('resume', this.syncConnectivityStateToServerCards.bind(this)); // Register handlers for events fired by Polymer components. - this.rootEl.addEventListener('PromptAddServerRequested', this.requestPromptAddServer.bind(this)); + this.rootEl.$.serversView.addEventListener('add-server', this.requestPromptAddServer.bind(this)); this.rootEl.addEventListener('AddServerConfirmationRequested', this.requestAddServerConfirmation.bind(this)); this.rootEl.addEventListener('AddServerRequested', this.requestAddServer.bind(this)); this.rootEl.addEventListener('IgnoreServerRequested', this.requestIgnoreServer.bind(this)); @@ -300,7 +300,6 @@ export class App { } private requestPromptAddServer() { - this.rootEl.promptAddServer(); this.pullClipboardText(); } @@ -440,7 +439,7 @@ export class App { console.error(`Failed to read auto-connect dialog status, assuming not dismissed: ${e}`); } if (!dismissed) { - this.rootEl.$.serversView.$.autoConnectDialog.show(); + this.rootEl.$.autoConnectDialog.show(); } } diff --git a/client/src/www/ui_components/app-root.js b/client/src/www/ui_components/app-root.js index f9183d4052e..dae39972294 100644 --- a/client/src/www/ui_components/app-root.js +++ b/client/src/www/ui_components/app-root.js @@ -339,7 +339,14 @@ export class AppRoot extends mixinBehaviors([AppLocalizeBehavior], PolymerElemen - +