Change view type button logic
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good
Details
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good
Details
This commit is contained in:
parent
fac528b42f
commit
e6f0320cf5
|
@ -491,13 +491,12 @@ const isSomeFilterSelected = computed(() => {
|
||||||
|
|
||||||
const viewTypeButtonContent = computed(() => {
|
const viewTypeButtonContent = computed(() => {
|
||||||
return {
|
return {
|
||||||
label: t(viewMode.value === 'list' ? 'listView' : 'gridView'),
|
label: t(viewMode.value === 'list' ? 'gridView' : 'listView'),
|
||||||
icon: viewMode.value === 'list' ? 'view_list' : 'grid_on'
|
icon: viewMode.value === 'list' ? 'grid_on' : 'view_list'
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
const getFilters = async () => {
|
const getFilters = async () => {
|
||||||
console.log('getFilters');
|
|
||||||
const promises = [
|
const promises = [
|
||||||
getItemFamilies(),
|
getItemFamilies(),
|
||||||
getItemColors(),
|
getItemColors(),
|
||||||
|
@ -510,7 +509,6 @@ const getFilters = async () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const getItems = async () => {
|
const getItems = async () => {
|
||||||
console.log('getItems');
|
|
||||||
try {
|
try {
|
||||||
if (!basketOrderId.value || !isSomeFilterSelected.value) return;
|
if (!basketOrderId.value || !isSomeFilterSelected.value) return;
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
|
|
Loading…
Reference in New Issue