Replace Alertify alert and confirm with React-based model dialog. Fixes #7053

This commit is contained in:
Akshay Joshi
2021-12-07 18:52:40 +05:30
parent e327066523
commit fd53e4f5f9
62 changed files with 393 additions and 398 deletions

View File

@@ -117,9 +117,9 @@ export default class SchemaDiffUI {
raise_error_on_fail(alert_title, xhr) {
try {
var err = JSON.parse(xhr.responseText);
Alertify.alert(alert_title, err.errormsg);
Notify.alert(alert_title, err.errormsg);
} catch (e) {
Alertify.alert(alert_title, e.statusText);
Notify.alert(alert_title, e.statusText);
}
}
@@ -154,7 +154,7 @@ export default class SchemaDiffUI {
url_params['target_sid'] == '' || _.isUndefined(url_params['target_sid']) ||
url_params['target_did'] == '' || _.isUndefined(url_params['target_did'])
) {
Alertify.alert(gettext('Selection Error'), gettext('Please select source and target.'));
Notify.alert(gettext('Selection Error'), gettext('Please select source and target.'));
return false;
}
@@ -168,7 +168,7 @@ export default class SchemaDiffUI {
}
}
if (isSameOptsSelected) {
Alertify.alert(gettext('Selection Error'), gettext('Please select the different source and target.'));
Notify.alert(gettext('Selection Error'), gettext('Please select the different source and target.'));
return false;
}