Skip to content

Commit

Permalink
feat(ui) add limit field to task run
Browse files Browse the repository at this point in the history
  • Loading branch information
PierrickBrun committed Oct 23, 2023
1 parent 85d9936 commit 7a3a8c5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
9 changes: 9 additions & 0 deletions web/src/components/TaskForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,15 @@
</v-col>
</v-row>

<v-text-field
v-model="item.limit"
:label="$t('Limit')"
:disabled="formSaving"
:hint="$t('limit_hint')"
:rules="[v => !!v || $t('limit_required')]"
required
/>

<div class="mt-4" v-if="!advancedOptions">
<a @click="advancedOptions = true">
{{ $t('advanced') }}
Expand Down
4 changes: 3 additions & 1 deletion web/src/lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,5 +232,7 @@ export default {
Build: 'Build',
Deploy: 'Deploy',
Run: 'Run',

Limit: 'Limit',
limit_hint: 'Host or group names separated by commas',
limit_required: 'Limit is required',
};
3 changes: 3 additions & 0 deletions web/src/lang/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,7 @@ export default {
Build: 'Construire',
Deploy: 'Déployer',
Run: 'Exécuter',
Limit: 'Limite',
limit_hint: 'Nom d\'hôte ou de groupe séparé par des virgules',
limit_required: 'Limite est requis',
};

0 comments on commit 7a3a8c5

Please sign in to comment.