feat(runners): add strings to UI

This commit is contained in:
Denis Gukov 2024-09-28 21:06:54 +05:00
parent 8352a94218
commit 8a1af9082c
4 changed files with 12 additions and 5 deletions

View File

@ -36,8 +36,7 @@
<v-checkbox
v-model="item.active"
:label="$t('active')"
v-if="isAdmin"
:label="$t('enabled')"
></v-checkbox>
</v-form>
</template>

View File

@ -149,13 +149,13 @@
v-model="item.active"
>
<template v-slot:label>
Enabled
{{ $t('enabled') }}
<span
v-if="item.active"
class="ml-3"
style="color: limegreen; font-weight: bold;"
>
Next run {{ nextRunTime() | formatDate }}.
{{ $t('scheduleNextRun') }} {{ nextRunTime() | formatDate }}.
</span>
</template>
</v-checkbox>

View File

@ -248,4 +248,12 @@ export default {
DeleteIntegrationMsg: 'Are you sure you want to delete this Integration?',
AddAlias: 'Add Alias',
LoadAlias: 'Loading aliases...',
runners: 'Runners',
newRunner: 'New Runner',
enabled: 'Enabled',
scheduleNextRun: 'Next run',
maxNumberOfParallelTasks: 'Maximum parallel tasks',
runnerUsage: 'Usage:',
runnerToken: 'Token:',
editRunner: 'Edit Runner',
};

View File

@ -226,7 +226,7 @@ semaphore runner --no-config`;
value: 'webhook',
},
{
text: this.$i18n.t('maxNumberOfParallelTasksOptional'),
text: this.$i18n.t('maxNumberOfParallelTasks'),
value: 'max_parallel_tasks',
}, {
text: this.$i18n.t('actions'),