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 e90e436ef87 UI: Enable listall (for Affinity Groups, SSH Keypairs, 
User Data) in deploy instance wizard for admin, and lists SSH Keypairs, User 
Data by domain/account (#11906)
e90e436ef87 is described below

commit e90e436ef873100b1916c80c0309c1eefcc4a265
Author: Suresh Kumar Anaparti <[email protected]>
AuthorDate: Wed Oct 29 15:48:32 2025 +0530

    UI: Enable listall (for Affinity Groups, SSH Keypairs, User Data) in deploy 
instance wizard for admin, and lists SSH Keypairs, User Data by domain/account 
(#11906)
---
 ui/src/views/compute/DeployVM.vue | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/ui/src/views/compute/DeployVM.vue 
b/ui/src/views/compute/DeployVM.vue
index 82a54ed8314..97ef7bb5a96 100644
--- a/ui/src/views/compute/DeployVM.vue
+++ b/ui/src/views/compute/DeployVM.vue
@@ -879,6 +879,7 @@
 import { ref, reactive, toRaw, nextTick, h } from 'vue'
 import { Button } from 'ant-design-vue'
 import { api } from '@/api'
+import { isAdmin } from '@/role'
 import _ from 'lodash'
 import { mixin, mixinDevice } from '@/utils/mixin.js'
 import store from '@/store'
@@ -1170,6 +1171,7 @@ export default {
       return _.map(this.affinityGroups, 'id')
     },
     params () {
+      const listAll = isAdmin()
       return {
         serviceOfferings: {
           list: 'listServiceOfferings',
@@ -1217,7 +1219,7 @@ export default {
             domainid: this.owner.domainid,
             projectid: this.owner.projectid,
             keyword: undefined,
-            listall: false
+            listall: listAll
           }
         },
         sshKeyPairs: {
@@ -1225,8 +1227,11 @@ export default {
           options: {
             page: 1,
             pageSize: 10,
+            account: this.owner.account,
+            domainid: this.owner.domainid,
+            projectid: this.owner.projectid,
             keyword: undefined,
-            listall: false
+            listall: listAll
           }
         },
         userDatas: {
@@ -1234,8 +1239,11 @@ export default {
           options: {
             page: 1,
             pageSize: 10,
+            account: this.owner.account,
+            domainid: this.owner.domainid,
+            projectid: this.owner.projectid,
             keyword: undefined,
-            listall: false
+            listall: listAll
           }
         },
         networks: {

Reply via email to