Change view type button logic
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details

This commit is contained in:
William Buezas 2024-09-24 09:03:59 -03:00
parent fac528b42f
commit e6f0320cf5
1 changed files with 2 additions and 4 deletions

View File

@ -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;