TF-4233 Implement edit label action

This commit is contained in:
dab246
2026-01-05 16:36:06 +07:00
committed by Dat H. Pham
parent 0302e09981
commit bac101021e
17 changed files with 376 additions and 66 deletions
@@ -20,11 +20,29 @@ enum LabelActionType {
switch (this) {
case LabelActionType.create:
return appLocalizations.createANewLabel;
case LabelActionType.edit:
return appLocalizations.editLabel;
}
}
String getModalSubtitle(AppLocalizations appLocalizations) {
switch (this) {
case LabelActionType.create:
return appLocalizations.organizeYourInboxWithACustomCategory;
case LabelActionType.edit:
return appLocalizations.updateTheLabelName;
}
}
String getModalPositiveAction(AppLocalizations appLocalizations) {
switch (this) {
case LabelActionType.create:
return appLocalizations.createLabel;
case LabelActionType.edit:
return appLocalizations.save;
}
}
String getContextMenuIcon(ImagePaths imagePaths) {
switch (this) {
case LabelActionType.create: