Fixed a bug with unsafe urls when not having a url.
This commit is contained in:
parent
09f405445e
commit
2614236e33
2 changed files with 8 additions and 2 deletions
|
|
@ -7,7 +7,12 @@
|
||||||
<app-card-actionables [actions]="actionables" (actionHandler)="performAction($event)"></app-card-actionables>
|
<app-card-actionables [actions]="actionables" (actionHandler)="performAction($event)"></app-card-actionables>
|
||||||
}
|
}
|
||||||
<h4 class="header" (click)="sectionClicked($event)" [ngClass]="{'non-selectable': !clickableTitle}">
|
<h4 class="header" (click)="sectionClicked($event)" [ngClass]="{'non-selectable': !clickableTitle}">
|
||||||
<a [href]="titleLink !== '' ? titleLink : 'javascript:void(0)'" class="section-title">{{title}}</a>
|
@if (titleLink !== '') {
|
||||||
|
<a [href]="titleLink | safeUrl" class="section-title">{{title}}</a>
|
||||||
|
} @else {
|
||||||
|
<a href="javascript:void(0)" class="section-title">{{title}}</a>
|
||||||
|
}
|
||||||
|
|
||||||
@if (iconClasses !== '') {
|
@if (iconClasses !== '') {
|
||||||
<i class="{{iconClasses}} title-icon ms-1" aria-hidden="true"></i>
|
<i class="{{iconClasses}} title-icon ms-1" aria-hidden="true"></i>
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,13 +15,14 @@ import {NgClass, NgTemplateOutlet} from '@angular/common';
|
||||||
import {TranslocoDirective} from "@jsverse/transloco";
|
import {TranslocoDirective} from "@jsverse/transloco";
|
||||||
import {CardActionablesComponent} from "../../../_single-module/card-actionables/card-actionables.component";
|
import {CardActionablesComponent} from "../../../_single-module/card-actionables/card-actionables.component";
|
||||||
import {ActionItem} from "../../../_services/action-factory.service";
|
import {ActionItem} from "../../../_services/action-factory.service";
|
||||||
|
import {SafeUrlPipe} from "../../../_pipes/safe-url.pipe";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-carousel-reel',
|
selector: 'app-carousel-reel',
|
||||||
templateUrl: './carousel-reel.component.html',
|
templateUrl: './carousel-reel.component.html',
|
||||||
styleUrls: ['./carousel-reel.component.scss'],
|
styleUrls: ['./carousel-reel.component.scss'],
|
||||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||||
imports: [NgClass, SwiperModule, NgTemplateOutlet, TranslocoDirective, CardActionablesComponent]
|
imports: [NgClass, SwiperModule, NgTemplateOutlet, TranslocoDirective, CardActionablesComponent, SafeUrlPipe]
|
||||||
})
|
})
|
||||||
export class CarouselReelComponent {
|
export class CarouselReelComponent {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue