adapted shared topic chip to accept already fetched topics instead of making another seperate call (+ error handling for possible null and undifined types as specified in the openapi generated model). Hopefully found all instances of regular material tooltip and changed to use new chip
LocationBasedServices/smartguide/pipeline/head This commit looks good
LocationBasedServices/smartguide/pipeline/head This commit looks good
This commit is contained in:
@@ -1,29 +1,27 @@
|
||||
<button
|
||||
type="button"
|
||||
class="topic-chip__button"
|
||||
[class.topic-chip__button--without-count]="!hasCount"
|
||||
[disabled]="disabled"
|
||||
[attr.aria-pressed]="active ? 'true' : null"
|
||||
[matTooltip]="buttonTooltip"
|
||||
[matTooltipDisabled]="!buttonTooltip"
|
||||
matTooltipClass="topic-chip-tooltip"
|
||||
[class.topic-chip__button--without-count]="!hasCount()"
|
||||
[disabled]="disabled()"
|
||||
[attr.aria-pressed]="active() ? 'true' : null"
|
||||
[appComponentTooltip]="AppTopicTooltipComponent"
|
||||
[tooltipInputs]="tooltipInputs()"
|
||||
[tooltipMaxWidth]="'500px'"
|
||||
(click)="handleClick()">
|
||||
<span
|
||||
class="topic-chip__label"
|
||||
[matTooltip]="labelTooltip"
|
||||
[matTooltipDisabled]="!labelTooltip"
|
||||
matTooltipClass="topic-chip-tooltip">
|
||||
{{ label }}
|
||||
<span class="topic-chip__label">
|
||||
{{ label() }}
|
||||
</span>
|
||||
|
||||
@if (hasCount) {
|
||||
@if (hasCount()) {
|
||||
<span
|
||||
class="topic-chip__count"
|
||||
[matTooltip]="normalizedCountTooltip"
|
||||
[matTooltipDisabled]="!normalizedCountTooltip">
|
||||
{{ count }}
|
||||
@if (countIconName) {
|
||||
<mat-icon class="topic-chip__count-icon">{{ countIconName }}</mat-icon>
|
||||
[matTooltip]="normalizedCountTooltip()"
|
||||
[matTooltipDisabled]="!normalizedCountTooltip()">
|
||||
{{ count() }}
|
||||
@if (countIconName()) {
|
||||
<mat-icon class="topic-chip__count-icon">{{
|
||||
countIconName()
|
||||
}}</mat-icon>
|
||||
}
|
||||
</span>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user