fix: disable toggle button when in readonly mode in ProfileBanner component

This commit is contained in:
puriphatt 2025-07-03 13:31:22 +07:00
parent 58231aa936
commit aaa448fa0c

View file

@ -229,6 +229,7 @@ const smallBanner = ref(false);
<ToggleButton
v-if="useToggle"
:disable="readonly"
two-way
:model-value="toggleStatus !== 'INACTIVE'"
@click="$emit('update:toggleStatus', toggleStatus)"