mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-09-24 14:31:16 +00:00
use standard material settings icon
This commit is contained in:
committed by
Yasa-Nataliya
parent
efa68eb856
commit
ab777f7c89
@@ -24,7 +24,7 @@
|
||||
{{ 'APP.BROWSE.ABOUT.TITLE' | translate }}
|
||||
</button>
|
||||
<button mat-menu-item data-automation-id="user-language-menu" [routerLink]="['/settings']">
|
||||
<mat-icon svgIcon="settings"></mat-icon>
|
||||
<mat-icon>settings</mat-icon>
|
||||
<span>{{ 'APP.SETTINGS.TITLE' | translate }}</span>
|
||||
</button>
|
||||
<mat-divider></mat-divider>
|
||||
|
@@ -14,11 +14,14 @@ import { DomSanitizer } from '@angular/platform-browser';
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class IconService {
|
||||
contentIcons: string[] = ['workspace', 'menu', 'avatar', 'settings'];
|
||||
contentIcons: string[] = ['workspace', 'menu', 'avatar'];
|
||||
|
||||
constructor(private matIconRegistry: MatIconRegistry, private domSanitizer: DomSanitizer) {}
|
||||
|
||||
public registerIcons(): void {
|
||||
this.loadIcons(this.contentIcons, './assets/svg/icons');
|
||||
}
|
||||
|
||||
private loadIcons(iconKeys: string[], iconUrl: string): void {
|
||||
iconKeys.forEach((key) => {
|
||||
this.matIconRegistry.addSvgIcon(key, this.domSanitizer.bypassSecurityTrustResourceUrl(`${iconUrl}/${key}.svg`));
|
||||
|
Reference in New Issue
Block a user