mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
fix filter change
This commit is contained in:
@@ -281,22 +281,15 @@ export class GabineteDigitalPage implements OnInit {
|
||||
|
||||
|
||||
checkFilter() {
|
||||
const params: any = new Proxy(new URLSearchParams(window.location.search), {
|
||||
get: (searchParams: any, prop: any) => searchParams.get(prop),
|
||||
});
|
||||
|
||||
const filter = params.filter
|
||||
|
||||
if(filter == 'ForToDay') {
|
||||
if(this.router.url.includes('ForToDay')) {
|
||||
this.filterName = 'Para hoje'
|
||||
} else if (filter == 'OverdueTasks') {
|
||||
} else if (this.router.url.includes('OverdueTasks')) {
|
||||
this.filterName = 'OverdueTasks'
|
||||
} else if (filter == 'New') {
|
||||
} else if (this.router.url.includes('New')) {
|
||||
this.filterName = 'Novos'
|
||||
} else if (filter == 'unread') {
|
||||
} else if (this.router.url.includes('unread')) {
|
||||
this.filterName = 'Não lidos'
|
||||
} else {
|
||||
console.log('filter', filter)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -443,7 +436,7 @@ export class GabineteDigitalPage implements OnInit {
|
||||
|
||||
checkRoutes() {
|
||||
this.closeAllDesktopComponents();
|
||||
if (this.router.url == '/home/gabinete-digital?processes=true') {
|
||||
if (this.router.url == 'processes=true') {
|
||||
this.openAllProcessesPage();
|
||||
this.selectedElement = 'allProcessesTag';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user