Skip to content

Commit 7dc69a2

Browse files
committed
fix(admins): conditionnally adding searchbar skiplink
1 parent 2a17397 commit 7dc69a2

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

packages/portail-admins/src/app/app.component.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,19 @@ export class AppComponent implements OnInit {
5353
link: `${this.currentUrl}#navigation`,
5454
},
5555
{ label: "Aller au contenu", link: `${this.currentUrl}#page` },
56-
{
57-
label: "Aller à la recherche",
58-
link: `${this.currentUrl}#search-bar`,
59-
},
6056
{
6157
label: "Aller au pied de page",
6258
link: `${this.currentUrl}#footer`,
6359
},
6460
];
6561

62+
if (this.currentUrl !== "/auth/login") {
63+
this.skipLinks.push({
64+
label: "Aller à la recherche",
65+
link: `${this.currentUrl}#search-bar`,
66+
});
67+
}
68+
6669
if (typeof splitUrl[1] !== "undefined") {
6770
const fragment = splitUrl[1];
6871
const element = document.getElementById(fragment);

packages/portail-admins/src/app/modules/shared/services/custom-toast.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ export class CustomToastService {
4040
setTimeout(() => {
4141
this.toast.display = false;
4242
this.toast$.next(this.toast);
43-
}, 60000);
43+
}, 6000);
4444
}
4545
}

packages/portail-usagers/src/app/app.component.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,6 @@ export class AppComponent implements OnInit {
9999
this.pendingNews = false;
100100
}
101101

102-
public onSkiplinkSelect(event: string): void {
103-
console.log("skiplink select", event);
104-
}
105-
106102
public ngOnInit(): void {
107103
this.titleService.setTitle(
108104
"Mon DomiFa, l'outil qui facilite la gestion des structures domiciliatirices"

0 commit comments

Comments
 (0)