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'
This commit is contained in:
mpmcroy 2020-10-07 13:31:22 -04:00 • committed by GitHub
parent ab637daf25
commit 616a3a9c8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
});