TF-4383 Handle read only labels
This commit is contained in:
@@ -29,12 +29,15 @@ extension LabelExtension on Label {
|
||||
}
|
||||
}
|
||||
|
||||
bool get isReadOnly => readOnly == true;
|
||||
|
||||
Label copyWith({
|
||||
Id? id,
|
||||
KeyWordIdentifier? keyword,
|
||||
String? displayName,
|
||||
HexColor? color,
|
||||
String? description,
|
||||
bool? readOnly,
|
||||
}) {
|
||||
return Label(
|
||||
id: id ?? this.id,
|
||||
@@ -42,6 +45,7 @@ extension LabelExtension on Label {
|
||||
keyword: keyword ?? this.keyword,
|
||||
color: color ?? this.color,
|
||||
description: description ?? this.description,
|
||||
readOnly: readOnly ?? this.readOnly,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user