File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -180,11 +180,16 @@ export default {
180180 fetchInstaceGroups () {
181181 this .groups .loading = true
182182 this .groups .opts = []
183- api (' listInstanceGroups' , {
184- account: this .$store .getters .userInfo .account ,
183+ const params = {
185184 domainid: this .$store .getters .userInfo .domainid ,
186185 listall: true
187- }).then (json => {
186+ }
187+ if (this .$store .getters .project && this .$store .getters .project .id ) {
188+ params .projectid = this .$store .getters .project .id
189+ } else {
190+ params .account = this .$store .getters .userInfo .account
191+ }
192+ api (' listInstanceGroups' , params).then (json => {
188193 const groups = json .listinstancegroupsresponse .instancegroup || []
189194 groups .forEach (x => {
190195 this .groups .opts .push (x .name )
You can’t perform that action at this time.
0 commit comments