Skip to content

Commit

Permalink
✨ : add main provider selection in modules
Browse files Browse the repository at this point in the history
  • Loading branch information
juwit committed Jul 12, 2020
1 parent c787392 commit 80d3d23
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/main/client/app/pages/modules/module.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@
<b-form-invalid-feedback>This field is mandatory</b-form-invalid-feedback>
</b-form-group>
</b-col>
<b-col>
<b-form-group
label="Main provider"
description="The main provider of this module"
>
<b-form-select
v-model="module.mainProvider"
:options="providers"
/>
</b-form-group>
</b-col>
<b-col :md="isTerraformImageOverride ? '5' : '3'">
<app-terraform-image-input
:image="module.terraformImage"
Expand Down Expand Up @@ -162,6 +173,12 @@
isTerraformImageValid: null,
isTerraformImageOverride: null,
teams: [],
providers: [
{ value: 'aws', text: 'AWS' },
{ value: 'azurerm', text: 'Azure' },
{ value: 'docker', text: 'Docker' },
{ value: 'google', text: 'GCP' },
],
};
},
Expand Down
2 changes: 2 additions & 0 deletions src/main/client/app/shared/config/bootstrap-vue-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
FormGroupPlugin,
FormInputPlugin,
FormPlugin,
FormSelectPlugin,
FormTextareaPlugin,
ImagePlugin,
InputGroupPlugin,
Expand All @@ -35,6 +36,7 @@ export default {
Vue.use(FormGroupPlugin);
Vue.use(FormInputPlugin);
Vue.use(FormPlugin);
Vue.use(FormSelectPlugin);
Vue.use(FormTextareaPlugin);
Vue.use(ImagePlugin);
Vue.use(InputGroupPlugin);
Expand Down

0 comments on commit 80d3d23

Please sign in to comment.