Skip to content

Commit

Permalink
Fixed updating current account id
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalii-honchar committed Mar 5, 2024
1 parent bbe8ad6 commit 8eaa044
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Vue.component('accounts-select', {
props: ['accounts', 'value'],
methods: {
updateValue: function (value) {
this.$emit('input', value)
this.$emit('accountchange', value);
}
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h4 class="panel-title pull-left">Capacity</h4>
<div class="container-fluid">
<form id="clusterConfigFormId" class="form-horizontal" role="form">
<fieldset id="clusterConfigFieldSetId">
<accounts-select v-bind:accounts="accounts" v-bind:value="currentAccountId"></accounts-select>
<accounts-select v-bind:accounts="accounts" v-on:accountchange="accountChange" v-bind:value="currentAccountId"></accounts-select>
<cloudprovider-select v-bind:cloudproviders="providers" v-bind:value="currentProvider"></cloudprovider-select>
<cell-select v-bind:cells="cells" v-on:cellchange="cellChange" v-bind:value="currentCell"></cell-select>
<label-input label="Capacity" placeholder="# of instances" v-model="instanceCount"></label-input>
Expand Down Expand Up @@ -295,6 +295,9 @@ <h4 class="panel-title pull-left">Capacity</h4>
}, {cell: capacitySetting.currentCell})
}
},
accountChange: function (value) {
capacitySetting.currentAccountId = value;
},
cellChange: function(value) {
capacitySetting.currentCell = value;
capacitySetting.cellValue = value;
Expand Down

0 comments on commit 8eaa044

Please sign in to comment.