TF-4233 Implement edit label action
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user