TF-4243 Remove modal subtitle for delete label action
This commit is contained in:
@@ -30,17 +30,14 @@ enum LabelActionType {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
String getModalSubtitle(
|
String getModalSubtitle(AppLocalizations appLocalizations) {
|
||||||
AppLocalizations appLocalizations, {
|
|
||||||
String labelName = '',
|
|
||||||
}) {
|
|
||||||
switch (this) {
|
switch (this) {
|
||||||
case LabelActionType.create:
|
case LabelActionType.create:
|
||||||
return appLocalizations.organizeYourInboxWithACustomCategory;
|
return appLocalizations.organizeYourInboxWithACustomCategory;
|
||||||
case LabelActionType.edit:
|
case LabelActionType.edit:
|
||||||
return appLocalizations.updateTheLabelName;
|
return appLocalizations.updateTheLabelName;
|
||||||
case LabelActionType.delete:
|
default:
|
||||||
return appLocalizations.areYouSureYouWantToDeleteTheLabel(labelName);
|
return '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user