TF-4370 Handle create new a label with description

This commit is contained in:
dab246
2026-03-11 15:13:40 +07:00
committed by Dat H. Pham
parent 90ddbf5824
commit 7df25c5f5a
3 changed files with 7 additions and 0 deletions
@@ -11,6 +11,8 @@ extension LabelExtension on Label {
String get safeDisplayName => displayName ?? '';
String get safeDescription => description ?? '';
Color? get backgroundColor {
if (id?.value == moreLabelId) {
return AppColor.grayBackgroundColor;
@@ -32,12 +34,14 @@ extension LabelExtension on Label {
KeyWordIdentifier? keyword,
String? displayName,
HexColor? color,
String? description,
}) {
return Label(
id: id ?? this.id,
displayName: displayName ?? this.displayName,
keyword: keyword ?? this.keyword,
color: color ?? this.color,
description: description ?? this.description,
);
}