Back to Super Productivity

Task Title.Component

src/app/ui/task-title/task-title.component.html

18.4.4458 B
Original Source

@let currentValue = tmpValue() ?? ''; @let trimmedValue = currentValue.trim(); @let hasContent = trimmedValue.length > 0; @let displayText = hasContent ? currentValue : (T.F.TASK.ADDITIONAL_INFO.TITLE_PLACEHOLDER | translate); @let placeholder = T.F.TASK.ADDITIONAL_INFO.TITLE_PLACEHOLDER | translate;

@if (!isEditing()) { @if (hasContent && hasUrlsOrMarkdown()) { } @else { {{ displayText }} } } @if (isEditing() && !readonly()) { {{ displayText }} }