Skip to content

Commit

Permalink
fix(manage): isPublic switch should be disabled if no arrangement
Browse files Browse the repository at this point in the history
  • Loading branch information
AsyncFox committed Dec 9, 2023
1 parent 7a36e23 commit b93547d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/manage/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ onMounted(async () => {
</UiCardTitle>
<div class="ml-auto flex items-center space-x-2">
<label for="public" class="text-slate-600">是否公开</label>
<UiSwitch id="public" :checked="arrangement?.isPublic" @update:checked="changeVisibility(arrangement?.date, !arrangement?.isPublic)" />
<UiSwitch id="public" :disabled="!arrangement" :checked="arrangement?.isPublic" @update:checked="changeVisibility(arrangement?.date, !arrangement?.isPublic)" />
</div>
</UiCardHeader>
<UiCardContent>
Expand Down

0 comments on commit b93547d

Please sign in to comment.