This is an automated email from the ASF dual-hosted git repository.

dahn pushed a commit to branch 4.20
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.20 by this push:
     new 1948f90c2c7 [UI] Fix group disable action for  compute and disk 
offering (#11602)
1948f90c2c7 is described below

commit 1948f90c2c7bfcb62d3eccc3b3aa86a522777eb4
Author: Manoj Kumar <[email protected]>
AuthorDate: Mon Sep 15 15:27:59 2025 +0530

    [UI] Fix group disable action for  compute and disk offering (#11602)
---
 ui/src/config/section/offering.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ui/src/config/section/offering.js 
b/ui/src/config/section/offering.js
index 2cef270ec3e..d958522b333 100644
--- a/ui/src/config/section/offering.js
+++ b/ui/src/config/section/offering.js
@@ -136,7 +136,7 @@ export default {
           }
         },
         show: (record) => { return record.state === 'Active' },
-        groupMap: (selection) => { return selection.map(x => { return { id: x 
} }) }
+        groupMap: (selection) => { return selection.map(x => { return { id: x, 
state: 'Inactive' } }) }
       }]
     },
     {
@@ -218,7 +218,7 @@ export default {
           }
         },
         show: (record) => { return record.state === 'Active' },
-        groupMap: (selection) => { return selection.map(x => { return { id: x 
} }) }
+        groupMap: (selection) => { return selection.map(x => { return { id: x, 
state: 'Inactive' } }) }
       }]
     },
     {
@@ -325,7 +325,7 @@ export default {
           }
         },
         show: (record) => { return record.state === 'Active' },
-        groupMap: (selection) => { return selection.map(x => { return { id: x 
} }) }
+        groupMap: (selection) => { return selection.map(x => { return { id: x, 
state: 'Inactive' } }) }
       }]
     },
     {

Reply via email to