created entity type message

This commit is contained in:
Yurii
2026-01-30 12:58:07 +02:00
parent ab639c2913
commit cf2a80ffec

View File

@@ -426,7 +426,11 @@ class EditModalView extends ModalView {
if (wasNew) {
const url = `#${this.scope}/view/${model.id}`;
const name = model.attributes[this.nameAttribute] || this.model.id;
let name = model.attributes[this.nameAttribute];
if (name === undefined) {
name = this.translate(this.scope, 'scopeNames');
}
const msg = this.translate('Created') + '\n' +
`[${name}](${url})`;