From 616a3a9c8a029cd38a19f06c0a0578fd3948687a Mon Sep 17 00:00:00 2001 From: mpmcroy Date: Wed, 7 Oct 2020 13:31:22 -0400 Subject: [PATCH] Changes the text on the DO account connectivity dialog 'cancel' button to 'disconnect' (#744) * Throw XhrError and show connectivity dialog on 401 responses * Adds error message * Renames account connectivity dialog 'cancel' button to 'disconnect' --- src/server_manager/web_app/ui_components/app-root.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server_manager/web_app/ui_components/app-root.js b/src/server_manager/web_app/ui_components/app-root.js index b73456df..da82f92b 100644 --- a/src/server_manager/web_app/ui_components/app-root.js +++ b/src/server_manager/web_app/ui_components/app-root.js @@ -694,7 +694,7 @@ export class AppRoot extends mixinBehaviors showConnectivityDialog(cb) { const dialogTitle = this.localize('error-connectivity-title'); const dialogText = this.localize('error-connectivity'); - this.showModalDialog(dialogTitle, dialogText, [this.localize('cancel'), this.localize('retry')]) + this.showModalDialog(dialogTitle, dialogText, [this.localize('digitalocean-disconnect'), this.localize('retry')]) .then(clickedButtonIndex => { cb(clickedButtonIndex === 1); // pass true if user clicked retry });