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

FEAT #15460 TIME 1 replace the img tag with mat-icon to solve the problem of...

FEAT #15460 TIME 1 replace the img tag with mat-icon to solve the problem of displaying a logo in svg format in some cases
parent b524d60d
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,8 @@
<div>{{'lang.chooseLogo' | translate}} : </div>
<div>
<mat-card style="width: 350px;background-size: 100%;cursor: pointer;" matRipple>
<img [src]="logoURL()" (click)="clickLogoButton(uploadLogo)" style="width: 100%;" />
<!--<img [src]="logoURL()" (click)="clickLogoButton(uploadLogo)" style="width: 100%;" />-->
<mat-icon svgIcon="maarchLogoFull" class="maarchLogo" (click)="clickLogoButton(uploadLogo)"></mat-icon>
<input type="file" name="files[]" #uploadLogo (change)="uploadTrigger($event, 'logo')"
accept="image/svg+xml" style="display: none;">
</mat-card>
......
......@@ -28,4 +28,10 @@
.backgroundItem:not(.disabled):hover {
transition: all 0.3s;
opacity: 1 !important;
}
.maarchLogo {
width: 100%;
height: 50%;
padding-bottom: 10px;
}
\ No newline at end of file
......@@ -144,6 +144,7 @@ export class ParametersCustomizationComponent implements OnInit, OnDestroy {
}
uploadTrigger(fileInput: any, mode: string) {
console.log(fileInput);
if (fileInput.target.files && fileInput.target.files[0]) {
const res = this.canUploadFile(fileInput.target.files[0], mode);
if (res === true) {
......@@ -196,9 +197,10 @@ export class ParametersCustomizationComponent implements OnInit, OnDestroy {
return true;
}
logoURL() {
// I replaced the img with the mat-icon
/* logoURL() {
return this.sanitizer.bypassSecurityTrustUrl(this.stepFormGroup.controls['logo'].value);
}
} */
selectBg(content: string) {
if (!this.stepFormGroup.controls['bodyImage'].disabled) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment