Skip to content

Commit a79bdb1

Browse files
committed
Fixing the Android and iOS icon.
1 parent 29abeea commit a79bdb1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

eform-client/src/app/plugins/modules/backend-configuration-pn/modules/property-workers/components/property-worker-table/property-worker-table.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,15 +164,15 @@
164164
<ng-container *ngIf="row['manufacturer'] === 'iOS' ">
165165
<div class="manufacturer" id="manufacturer-{{row.id}}">
166166
<span [matTooltip]="row['deviceModel']" class="neutral-icon">
167-
<mat-icon fontSet="material-symbols-outlined">ios</mat-icon>
167+
<mat-icon svgIcon="ios-icon"></mat-icon>
168168
</span>
169169
{{ row.model }} ({{ row.osVersion }})
170170
</div>
171171
</ng-container>
172172
<ng-container *ngIf="row['manufacturer'] === 'Android' ">
173173
<div class="manufacturer" id="manufacturer-{{row.id}}">
174174
<span [matTooltip]="row['deviceModel']" class="neutral-icon">
175-
<mat-icon>android</mat-icon>
175+
<mat-icon svgIcon="android-icon"></mat-icon>
176176
</span>
177177
{{ row.model }} ({{ row.osVersion }})
178178
</div>

eform-client/src/app/plugins/modules/backend-configuration-pn/modules/property-workers/components/property-worker-table/property-worker-table.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import {
3232
} from '../../../../state';
3333
import {format} from 'date-fns';
3434
import {AuthStateService} from 'src/app/common/store';
35-
import {PasswordValidationIcon, PdfIcon} from "src/app/common/const";
35+
import {AndroidIcon, iOSIcon, PasswordValidationIcon, PdfIcon} from "src/app/common/const";
3636
import {MatIconRegistry} from "@angular/material/icon";
3737
import {DomSanitizer} from "@angular/platform-browser";
3838

@@ -328,6 +328,8 @@ export class PropertyWorkerTableComponent implements OnInit, OnDestroy, OnChange
328328

329329
ngOnInit() {
330330
this.iconRegistry.addSvgIconLiteral('password-validation', this.sanitizer.bypassSecurityTrustHtml(PasswordValidationIcon));
331+
this.iconRegistry.addSvgIconLiteral('android-icon', this.sanitizer.bypassSecurityTrustHtml(AndroidIcon));
332+
this.iconRegistry.addSvgIconLiteral('ios-icon', this.sanitizer.bypassSecurityTrustHtml(iOSIcon));
331333
this.searchSubject.pipe(debounceTime(500)).subscribe((val) => {
332334
this.propertyWorkersStateService.updateNameFilter(val);
333335
});

0 commit comments

Comments
 (0)