Skip to content
Snippets Groups Projects
Commit 52bd9a6a authored by OZGCloud's avatar OZGCloud
Browse files

OZG-5010-OZG-5577 Move string concat to get function

parent 8bd2946e
Branches
Tags
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<ods-spinner-icon spinner *ngIf="isLoading" class="mr-3 size-10" /> <ods-spinner-icon spinner *ngIf="isLoading" class="mr-3 size-10" />
<ods-icon <ods-icon
icon icon
[name]="'file-' + getIconType(file.contentType)" [name]="getIconType(file.contentType)"
class="mr-3 size-10 fill-primary" class="mr-3 size-10 fill-primary"
></ods-icon> ></ods-icon>
<button <button
......
...@@ -35,8 +35,8 @@ export class BinaryFile2Component { ...@@ -35,8 +35,8 @@ export class BinaryFile2Component {
} }
getIconType(type: string): string { getIconType(type: string): string {
if (type.startsWith('image')) return 'image'; if (type.startsWith('image')) return 'file-image';
return type.split('/')[1]; return 'file-' + type.split('/')[1];
} }
downloadFile(): void { downloadFile(): void {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment