Defined delete string in the base with the ability to pass the resource name in

This commit is contained in:
mabashian
2017-11-22 13:28:02 -05:00
parent 565b0b82dd
commit d3da899459
13 changed files with 18 additions and 52 deletions

View File

@@ -60,6 +60,10 @@ function BaseStringService (namespace) {
this.CANCEL = t.s('CANCEL');
this.SAVE = t.s('SAVE');
this.OK = t.s('OK');
this.deleteResource = {
USED_BY: resourceType => t.s('The {{ resourceType }} is currently being used by other resources.', { resourceType }),
CONFIRM: resourceType => t.s('Are you sure you want to delete this {{ resourceType }}?', { resourceType })
};
/**
* This getter searches the extending class' namespace first for a match then falls back to