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:
@@ -1253,7 +1253,7 @@ const goToOCRScan = () => {
|
||||
})
|
||||
}
|
||||
|
||||
// US-103/US-306: Top bar actions for MobileTopBar component
|
||||
// US-103/US-306/US-609: Top bar actions for MobileTopBar component
|
||||
const mobileTopBarActions = computed(() => {
|
||||
if (mobileSelectionMode.value) {
|
||||
// Selection mode - show select all action
|
||||
@@ -1261,15 +1261,16 @@ const mobileTopBarActions = computed(() => {
|
||||
{ id: 'select-all', icon: 'pi pi-check-square', label: 'Selectează tot', tooltip: 'Selectează tot' }
|
||||
]
|
||||
}
|
||||
// Normal mode - show filter, export, more menu (US-306)
|
||||
// Normal mode - show filter, reset, export, more menu (US-306, US-609)
|
||||
return [
|
||||
{ id: 'filter', icon: 'pi pi-filter', active: hasActiveFilters.value, tooltip: 'Filtre' },
|
||||
{ id: 'reset', icon: 'pi pi-filter-slash', tooltip: 'Resetează Filtrele' },
|
||||
{ id: 'export', icon: 'pi pi-download', tooltip: 'Export Excel' },
|
||||
{ id: 'more', icon: 'pi pi-ellipsis-v', tooltip: 'Mai multe' }
|
||||
]
|
||||
})
|
||||
|
||||
// US-103/US-306: Handle top bar action clicks
|
||||
// US-103/US-306/US-609: Handle top bar action clicks
|
||||
const handleTopBarAction = (action) => {
|
||||
switch (action.id) {
|
||||
case 'select-all':
|
||||
@@ -1278,10 +1279,14 @@ const handleTopBarAction = (action) => {
|
||||
case 'filter':
|
||||
showFilters.value = !showFilters.value
|
||||
break
|
||||
case 'reset':
|
||||
// US-609: Reset all filters to default values
|
||||
clearFilters()
|
||||
break
|
||||
case 'export':
|
||||
// US-502: Show export menu (PDF/XLSX dropdown) on mobile too
|
||||
if (exportMenuRef.value) {
|
||||
const btn = document.querySelector('.mobile-top-bar .top-bar-btn:nth-child(2)')
|
||||
const btn = document.querySelector('.mobile-top-bar .top-bar-btn:nth-child(3)')
|
||||
if (btn) {
|
||||
exportMenuRef.value.toggle({ currentTarget: btn })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user