[pve-devel] [PATCH manager v2 2/2] window: migrate: use predefined constant for error alert title
Christoph Heiss
c.heiss at proxmox.com
Mon Apr 7 11:16:28 CEST 2025
This is already defined, so use it where possible.
Signed-off-by: Christoph Heiss <c.heiss at proxmox.com>
---
Changes v1 -> v2:
* no changes
www/manager6/window/Migrate.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/www/manager6/window/Migrate.js b/www/manager6/window/Migrate.js
index ab0239eaf..8b1dbef89 100644
--- a/www/manager6/window/Migrate.js
+++ b/www/manager6/window/Migrate.js
@@ -139,7 +139,7 @@ Ext.define('PVE.window.Migrate', {
waitMsgTarget: view,
method: 'POST',
failure: function(response, opts) {
- Ext.Msg.alert(gettext('Error'), response.htmlStatus);
+ Ext.Msg.alert(Proxmox.Utils.errorText, response.htmlStatus);
},
success: function(response, options) {
var upid = response.result.data;
@@ -201,7 +201,7 @@ Ext.define('PVE.window.Migrate', {
migrateStats = result.data;
me.fetchingNodeMigrateInfo = false;
} catch (error) {
- Ext.Msg.alert(gettext('Error'), error.htmlStatus);
+ Ext.Msg.alert(Proxmox.Utils.errorText, error.htmlStatus);
return;
}
--
2.48.1
More information about the pve-devel
mailing list