updated style template filter status

This commit is contained in:
Warunee Tamkoo 2024-09-17 15:15:24 +07:00
parent 370599e61c
commit 6362391281
2 changed files with 8 additions and 21 deletions

View file

@ -33,17 +33,6 @@ const childTemplateDetailRef = ref<InstanceType<typeof TemplateDetail> | null>(
const childPageOrderRef = ref<InstanceType<typeof PageOrder> | null>(null); //ref components
const isActive = ref<boolean>(true); //
// options
const activeOptions = ref<ActiveOptions[]>([
{
value: true,
label: "Active",
},
{
value: false,
label: "InActive",
},
]);
// Tabs
const tabs = ref<Tabs[]>([
@ -295,11 +284,10 @@ onMounted(async () => {
<q-space />
<div class="col-12 col-md-6 q-py-sm">
<div class="row items-center no-wrap justify-end">
<q-badge
outline
:color="`${isActive ? `primary` : `orange`}`"
:label="`${isActive ? `Active` : `InActive`}`"
/>
<q-label
:class="`${isActive ? `text-primary` : `text-orange`}`"
>{{ `${isActive ? `ใช้งาน` : `ไม่ใช้งาน`}` }}</q-label
>
<label :class="`q-ml-lg toggle-control`">
<input type="checkbox" v-model="isActive" />
<span class="control"></span>

View file

@ -304,11 +304,10 @@ onMounted(() => {
<q-space />
<div class="row items-center no-wrap">
<q-badge
outline
:color="`${isActive ? `primary` : `orange`}`"
:label="`${isActive ? `ใช้` : `ไม่ใช้`}งาน`"
/>
<q-label
:class="`${isActive ? `text-primary` : `text-orange`}`"
>{{ `${isActive ? `ใช้งาน` : `ไม่ใช้งาน`}` }}</q-label
>
<label :class="`q-ml-lg toggle-control`">
<input type="checkbox" v-model="isActive" />
<span class="control"></span>