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(() => { 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;