Skip to content
Snippets Groups Projects
Commit 853eecc4 authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #14839 TIME 0:10 fix click of undefined + add success notification

parent 9f062dab
No related branches found
No related tags found
No related merge requests found
...@@ -193,7 +193,9 @@ export class AdministrationService { ...@@ -193,7 +193,9 @@ export class AdministrationService {
// WORKAROUND TO SHOW ARROW DEFAULT FILTER // WORKAROUND TO SHOW ARROW DEFAULT FILTER
const element: HTMLElement = document.getElementsByClassName('mat-column-' + this.getFilter('sort'))[0] as HTMLElement; const element: HTMLElement = document.getElementsByClassName('mat-column-' + this.getFilter('sort'))[0] as HTMLElement;
element.click(); if (document.getElementsByClassName('mat-column-' + this.getFilter('sort')).length > 0) {
element.click();
}
if (this.getFilter('sortDirection') === 'desc') { if (this.getFilter('sortDirection') === 'desc') {
element.click(); element.click();
} }
......
...@@ -117,6 +117,9 @@ export class MultigestListAdministrationComponent implements OnInit { ...@@ -117,6 +117,9 @@ export class MultigestListAdministrationComponent implements OnInit {
saveUrl() { saveUrl() {
this.http.put('../rest/multigest/configuration', { uri: this.multigestUrl }).pipe( this.http.put('../rest/multigest/configuration', { uri: this.multigestUrl }).pipe(
tap(() => {
this.notify.success(this.translate.instant('lang.dataUpdated'));
}),
catchError((err: any) => { catchError((err: any) => {
this.notify.handleSoftErrors(err); this.notify.handleSoftErrors(err);
return of(false); return of(false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment