Skip to content

Commit

Permalink
VNF/UI: hide 'Create Network' butthon when deploy VNF appliance
Browse files Browse the repository at this point in the history
  • Loading branch information
weizhouapache committed Oct 11, 2023
1 parent 0ed5089 commit a74b125
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions ui/src/views/compute/DeployVnfAppliance.vue
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@
:value="networkOfferingIds"
:loading="loading.networks"
:zoneId="zoneId"
:vnf="true"
:preFillContent="dataPreFill"
@select-network-item="($event) => updateNetworks($event)"
@handle-search-filter="($event) => handleSearchFilter('networks', $event)"
Expand Down
6 changes: 5 additions & 1 deletion ui/src/views/compute/wizard/NetworkSelection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
:placeholder="$t('label.search')"
v-model:value="filter"
@search="handleSearch" />
<a-button type="primary" @click="onCreateNetworkClick" style="float: right; margin-right: 5px; z-index: 8" v-if="showCreateButton">
<a-button type="primary" @click="onCreateNetworkClick" style="float: right; margin-right: 5px; z-index: 8" v-if="showCreateButton && !this.vnf">
{{ $t('label.create.network') }}
</a-button>
<a-table
Expand Down Expand Up @@ -138,6 +138,10 @@ export default {
type: Boolean,
default: () => false
},
vnf: {
type: Boolean,
default: () => false
},
preFillContent: {
type: Object,
default: () => {}
Expand Down

0 comments on commit a74b125

Please sign in to comment.