feat: 09 => task status inactive
This commit is contained in:
parent
8175081df7
commit
d6dcc71931
2 changed files with 6 additions and 5 deletions
|
|
@ -34,8 +34,7 @@ const currStatus = computed(() =>
|
||||||
statusList.find((v) => v.value === props.status),
|
statusList.find((v) => v.value === props.status),
|
||||||
);
|
);
|
||||||
|
|
||||||
function hideIcon() {
|
function inactiveCheck() {
|
||||||
if (props.noAction) return props.noAction;
|
|
||||||
if (props.type === 'order') {
|
if (props.type === 'order') {
|
||||||
return (
|
return (
|
||||||
currStatus.value?.value === TaskStatus.InProgress ||
|
currStatus.value?.value === TaskStatus.InProgress ||
|
||||||
|
|
@ -81,7 +80,8 @@ function hideIcon() {
|
||||||
"
|
"
|
||||||
class="text-capitalize text-weight-regular product-status rounded"
|
class="text-capitalize text-weight-regular product-status rounded"
|
||||||
:class="{
|
:class="{
|
||||||
'hide-icon q-pr-md inactive': hideIcon(),
|
'inactive hide-icon q-pr-md': inactiveCheck(),
|
||||||
|
'hide-icon q-pr-md': noAction,
|
||||||
warning:
|
warning:
|
||||||
currStatus?.value === TaskStatus.Pending ||
|
currStatus?.value === TaskStatus.Pending ||
|
||||||
currStatus?.value === TaskStatus.InProgress,
|
currStatus?.value === TaskStatus.InProgress,
|
||||||
|
|
@ -175,7 +175,8 @@ function hideIcon() {
|
||||||
}
|
}
|
||||||
&.inactive {
|
&.inactive {
|
||||||
--_color: var(--stone-7-hsl);
|
--_color: var(--stone-7-hsl);
|
||||||
opacity: 0.7;
|
opacity: 0.8;
|
||||||
|
cursor: default;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ export const taskStatusOrderToggle = [
|
||||||
{
|
{
|
||||||
value: TaskStatus.InProgress,
|
value: TaskStatus.InProgress,
|
||||||
icon: 'mdi-file-move-outline',
|
icon: 'mdi-file-move-outline',
|
||||||
color: 'positive',
|
color: 'warning',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: TaskStatus.Complete,
|
value: TaskStatus.Complete,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue