Skip to content

Commit

Permalink
feat(fe): add flags to ui
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Feb 17, 2022
1 parent 911faa9 commit b8f89e7
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
11 changes: 10 additions & 1 deletion web2/src/components/ProjectForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,18 @@

<v-text-field
v-model="item.alert_chat"
label="Telegram Chat ID"
label="Telegram Chat ID (Optional)"
:disabled="formSaving"
></v-text-field>

<v-text-field
v-model="item.max_parallel_tasks"
label="Max number of parallel tasks (Optional)"
:disabled="formSaving"
:rules="[v => (v == null || v === '' || v >= 0) || 'Should be 0 or greater']"
hint="Should be 0 or greater, 0 - unlimited."
type="number"
></v-text-field>
</v-form>
</template>
<script>
Expand Down
7 changes: 7 additions & 0 deletions web2/src/components/TemplateForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,13 @@
<v-icon style="transform: translateY(-1px)">mdi-chevron-right</v-icon>
</a>

<v-checkbox
v-if="advancedOptions"
class="mt-0"
label="Suppress success alerts"
v-model="item.suppress_success_alerts"
/>

<codemirror
v-if="advancedOptions"
:style="{ border: '1px solid lightgray' }"
Expand Down
2 changes: 1 addition & 1 deletion web2/src/views/project/New.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</v-toolbar>

<div class="project-settings-form">
<div style="height: 220px;">
<div style="height: 300px;">
<ProjectForm item-id="new" ref="editForm" @save="onSave"/>
</div>

Expand Down
2 changes: 1 addition & 1 deletion web2/src/views/project/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</div>
</v-toolbar>
<div class="project-settings-form">
<div style="height: 220px;">
<div style="height: 300px;">
<ProjectForm :item-id="projectId" ref="form" @error="onError" @save="onSave"/>
</div>

Expand Down

0 comments on commit b8f89e7

Please sign in to comment.