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(() => {
|
||||
return {
|
||||
label: t(viewMode.value === 'list' ? 'listView' : 'gridView'),
|
||||
icon: viewMode.value === 'list' ? 'view_list' : 'grid_on'
|
||||
label: t(viewMode.value === 'list' ? 'gridView' : 'listView'),
|
||||
icon: viewMode.value === 'list' ? 'grid_on' : 'view_list'
|
||||
};
|
||||
});
|
||||
|
||||
const getFilters = async () => {
|
||||
console.log('getFilters');
|
||||
const promises = [
|
||||
getItemFamilies(),
|
||||
getItemColors(),
|
||||
|
@ -510,7 +509,6 @@ const getFilters = async () => {
|
|||
};
|
||||
|
||||
const getItems = async () => {
|
||||
console.log('getItems');
|
||||
try {
|
||||
if (!basketOrderId.value || !isSomeFilterSelected.value) return;
|
||||
loading.value = true;
|
||||
|
|
Loading…
Reference in New Issue