TF-4233 Fix the response success check to use key presence instead of value nullness.

This commit is contained in:
dab246
2026-01-23 12:06:55 +07:00
committed by Dat H. Pham
parent 6551750bd2
commit 69c3d32e3c
10 changed files with 49 additions and 29 deletions
@@ -43,6 +43,15 @@ enum LabelActionType {
}
}
Key getModalPositiveActionKey() {
switch (this) {
case LabelActionType.create:
return const Key('create_label_button_action');
case LabelActionType.edit:
return const Key('save_label_button_action');
}
}
String getContextMenuIcon(ImagePaths imagePaths) {
switch (this) {
case LabelActionType.create: