Skip to content

Commit

Permalink
fix(fe): add input for temlate's extra args
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Apr 21, 2021
1 parent 85753d6 commit a278f11
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion web2/src/components/EditDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
>{{ title }}</slot>
</v-card-title>

<v-card-text>
<v-card-text class="pb-0">
<slot
name="form"
:onSave="close"
Expand Down
18 changes: 18 additions & 0 deletions web2/src/components/TemplateForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
v-model="formValid"
v-if="isLoaded"
>
<v-row>
<v-col cols="12" md="6" class="pb-0">
<v-text-field
v-model="item.alias"
label="Playbook Alias"
Expand Down Expand Up @@ -42,7 +44,9 @@
required
:disabled="formSaving"
></v-select>
</v-col>

<v-col cols="12" md="6" class="pb-0">
<v-select
v-model="item.repository_id"
label="Playbook Repository"
Expand All @@ -64,6 +68,20 @@
required
:disabled="formSaving"
></v-select>

<v-textarea
outlined
class="mt-4"
v-model="item.arguments"
label="Extra CLI Arguments"
:disabled="formSaving"
placeholder='*MUST* be a JSON array!
Example: ["-i", "@myinventory.sh", "--private-key=/there/id_rsa", "-vvvv"]'
rows="4"
></v-textarea>

</v-col>
</v-row>
</v-form>
</template>
<script>
Expand Down
1 change: 1 addition & 0 deletions web2/src/views/project/TemplateView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
</div>
<div v-else>
<EditDialog
max-width="700"
v-model="editDialog"
save-button-text="Save"
title="Edit Template"
Expand Down
1 change: 1 addition & 0 deletions web2/src/views/project/Templates.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
</div>
<div v-else>
<EditDialog
max-width="700"
v-model="editDialog"
save-button-text="Create"
title="New template"
Expand Down

0 comments on commit a278f11

Please sign in to comment.