Skip to content

Commit

Permalink
Improved: support to not allow user to select the schedule until the …
Browse files Browse the repository at this point in the history
…status for job is draft(#147)
  • Loading branch information
ymaheshwari1 committed Apr 4, 2024
1 parent ef330b6 commit 0029dab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/BrokeringRoute.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@
</ion-item>
<ion-item lines="none">
<ion-icon slot="start" :icon="timerOutline"/>
<!-- When the group is in draft status, do not display the frequency and juust display the label for schedule -->
<ion-label v-if="job.paused === 'Y'">{{ translate("Schedule") }}</ion-label>
<ion-label v-if="job.paused === 'Y'" slot="end">{{ "-" }}</ion-label>
<!-- When the group is in draft status or the job is not present, do not display the frequency and just display the label for schedule -->
<ion-label v-if="!job.paused || job.paused === 'Y'">{{ translate("Schedule") }}</ion-label>
<ion-label v-if="!job.paused || job.paused === 'Y'" slot="end">{{ "-" }}</ion-label>
<ion-select v-else :label="translate('Schedule')" interface="popover" :placeholder="translate('Select')" :value="job.cronExpression" @ionChange="updateCronExpression($event)">
<ion-select-option v-for="(expression, description) in cronExpressions" :key="expression" :value="expression">{{ description }}</ion-select-option>
</ion-select>
Expand Down

0 comments on commit 0029dab

Please sign in to comment.