Add repair button to error dialog and improve dns error message

This commit is contained in:
Johannes Zellner
2017-08-01 11:42:20 +02:00
parent 70a3cdc9bc
commit 99cfe564ae
3 changed files with 20 additions and 3 deletions

View File

@@ -110,7 +110,15 @@ app.filter('activeOAuthClients', function () {
app.filter('prettyAppMessage', function () {
return function (message) {
if (message === 'ETRYAGAIN') return 'The DNS record for this location is not setup correctly. Please verify your DNS settings and restore this app.';
if (message === 'ETRYAGAIN') return 'The DNS record for this location is not setup correctly. Please verify your DNS settings and repair this app.';
if (message === 'DNS Record already exists') return 'The DNS record for this location already exists. Manually remove the DNS record and then click on repair.';
return message;
};
});
app.filter('shortAppMessage', function () {
return function (message) {
if (message === 'ETRYAGAIN') return 'DNS record not setup correctly';
return message;
};
});