@mediusinc/mng-commons 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3203,12 +3203,11 @@ var I18nUtils;
|
|
|
3203
3203
|
return I18nUtils.Action.getAsync(translate, action, ['editor.title', 'title'], action.editorTitle ?? undefined, item);
|
|
3204
3204
|
}
|
|
3205
3205
|
static getParams(translate, action, item, params = {}) {
|
|
3206
|
-
const
|
|
3207
|
-
return I18nUtils.Action.populateParams(
|
|
3206
|
+
const i18nParams = I18nUtils.Model.getParams(translate, action.model ?? undefined, item, params);
|
|
3207
|
+
return I18nUtils.Action.populateParams(i18nParams);
|
|
3208
3208
|
}
|
|
3209
3209
|
static getParamsAsync(translate, action, item, params = {}) {
|
|
3210
|
-
|
|
3211
|
-
return I18nUtils.Model.getParamsAsync(translate, action.model ?? undefined, item, params).pipe(map(i18nParams => I18nUtils.Action.populateParams(modelI18nParams)));
|
|
3210
|
+
return I18nUtils.Model.getParamsAsync(translate, action.model ?? undefined, item, params).pipe(map(i18nParams => I18nUtils.Action.populateParams(i18nParams)));
|
|
3212
3211
|
}
|
|
3213
3212
|
static populateParams(params = {}) {
|
|
3214
3213
|
params = { ...params };
|