feat(ui-fixes-phase6): Complete US-609 - Buton Resetează pe Toate Paginile cu Filtre Mobil
Implemented by Ralph autonomous loop. Iteration: 10 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -101,7 +101,7 @@
|
||||
icon="pi pi-filter-slash"
|
||||
label="Resetează"
|
||||
class="p-button-outlined p-button-secondary"
|
||||
@click="clearFilters; showFilters = false"
|
||||
@click="clearFilters(); showFilters = false"
|
||||
/>
|
||||
<Button
|
||||
icon="pi pi-check"
|
||||
@@ -436,7 +436,7 @@ const handleLogout = async () => {
|
||||
router.push('/login');
|
||||
};
|
||||
|
||||
// US-107: Mobile TopBar actions (refresh + export)
|
||||
// US-107/US-609: Mobile TopBar actions (filter, reset, refresh, export)
|
||||
const mobileTopBarActions = computed(() => [
|
||||
{
|
||||
icon: "pi pi-filter",
|
||||
@@ -444,6 +444,11 @@ const mobileTopBarActions = computed(() => [
|
||||
tooltip: "Filtre",
|
||||
active: hasActiveFilters.value
|
||||
},
|
||||
{
|
||||
icon: "pi pi-filter-slash",
|
||||
label: "Resetează",
|
||||
tooltip: "Resetează Filtrele"
|
||||
},
|
||||
{
|
||||
icon: "pi pi-refresh",
|
||||
label: "Actualizează",
|
||||
@@ -456,10 +461,12 @@ const mobileTopBarActions = computed(() => [
|
||||
}
|
||||
]);
|
||||
|
||||
// US-107: Handle top bar action clicks
|
||||
// US-107/US-609: Handle top bar action clicks
|
||||
const handleTopBarAction = (action) => {
|
||||
if (action.icon === "pi pi-filter") {
|
||||
showFilters.value = !showFilters.value;
|
||||
} else if (action.icon === "pi pi-filter-slash") {
|
||||
clearFilters();
|
||||
} else if (action.icon === "pi pi-refresh") {
|
||||
refreshData();
|
||||
} else if (action.icon === "pi pi-download") {
|
||||
|
||||
Reference in New Issue
Block a user