|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<v-menu offset-y transition="slide-y-transition"> |
|
|
|
<v-menu offset-y transition="slide-y-transition"> |
|
|
|
<template #activator="{ on }"> |
|
|
|
<template #activator="{ on }"> |
|
|
|
<v-badge :value="sortList && sortList.length" color="primary" dot overlap> |
|
|
|
<v-badge :value="validSortsExist" color="primary" dot overlap> |
|
|
|
<v-btn |
|
|
|
<v-btn |
|
|
|
v-t="['c:sort']" |
|
|
|
v-t="['c:sort']" |
|
|
|
class="nc-sort-menu-btn px-2 nc-remove-border" |
|
|
|
class="nc-sort-menu-btn px-2 nc-remove-border" |
|
|
@ -10,7 +10,7 @@ |
|
|
|
text |
|
|
|
text |
|
|
|
outlined |
|
|
|
outlined |
|
|
|
:class="{ |
|
|
|
:class="{ |
|
|
|
'primary lighten-5 grey--text text--darken-3': sortList && sortList.length, |
|
|
|
'primary lighten-5 grey--text text--darken-3': validSortsExist, |
|
|
|
}" |
|
|
|
}" |
|
|
|
v-on="on" |
|
|
|
v-on="on" |
|
|
|
> |
|
|
|
> |
|
|
@ -98,6 +98,9 @@ export default { |
|
|
|
icon: getUIDTIcon(c.uidt), |
|
|
|
icon: getUIDTIcon(c.uidt), |
|
|
|
})); |
|
|
|
})); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
validSortsExist() { |
|
|
|
|
|
|
|
return this.sortList && this.sortList.filter(sort => sort.fk_column_id !== null).length > 0; |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
watch: { |
|
|
|
value(v) { |
|
|
|
value(v) { |
|
|
|