mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-25 06:50:54 +00:00
Fix SafeDestroy when entering a numeric resource ID
In a previous commit, the inputField of SafeDestroy.js was converted from a numberfield to a textfield to allow ceph pools names to be entered. This means the type of 'value' changed from number to string and the strong equal test === was failing against a numeric id. To solve this, we now always stringify the resource id before comparing.
This commit is contained in:
parent
ca31682687
commit
beba93b147
@ -31,7 +31,7 @@ Ext.define('PVE.window.SafeDestroy', {
|
||||
change: function(f, value) {
|
||||
var view = this.getView();
|
||||
var removeButton = this.lookupReference('removeButton');
|
||||
if (value === view.getItem().id) {
|
||||
if (value === view.getItem().id.toString()) {
|
||||
removeButton.enable();
|
||||
} else {
|
||||
removeButton.disable();
|
||||
|
Loading…
Reference in New Issue
Block a user