Skip to content

Commit

Permalink
Disable quick link update on inactive schedules (#727)
Browse files Browse the repository at this point in the history
* 🔨 Disable quick link update on inactive schedules

* 🔨 Move refresh icon to link button
  • Loading branch information
devmount authored Oct 30, 2024
1 parent c3ea759 commit 63c97f1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions frontend/src/components/ScheduleCreation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ watch(
<hr/>
<!-- custom quick link -->
<label class="relative flex flex-col gap-1">
<div class="flex gap-2">
<div class="flex items-center gap-2">
<text-input
type="text"
name="slug"
Expand All @@ -716,7 +716,13 @@ watch(
>
{{ t("label.quickLink") }}
</text-input>
<refresh-icon class="mt-7 cursor-pointer text-teal-600" @click.prevent="refreshSlug" />
<link-button
class="p-0.5"
@click="scheduleInput.active ? refreshSlug() : null"
:disabled="!scheduleInput.active"
>
<refresh-icon />
</link-button>
</div>
</label>
<!-- option to deactivate confirmation -->
Expand Down

0 comments on commit 63c97f1

Please sign in to comment.