Skip to content

Commit

Permalink
disable rather than hide the automation toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
pleek91 committed Sep 24, 2024
1 parent de9137a commit 994bf7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/automations/components/AutomationToggle.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<p-toggle v-if="can.update.automation" v-model="internalValue" :state="state" />
<p-toggle v-model="internalValue" :disabled="!can.update.automation" :state="state" />
</template>

<script lang="ts" setup>
Expand Down

0 comments on commit 994bf7f

Please sign in to comment.