From 26e6f658fdb203a26ade915caff72960f1663d4c Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Thu, 17 Aug 2023 14:03:53 +0300 Subject: [PATCH] fix msg --- client/src/views/modals/edit.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/views/modals/edit.js b/client/src/views/modals/edit.js index 3bbe181717..607e242746 100644 --- a/client/src/views/modals/edit.js +++ b/client/src/views/modals/edit.js @@ -299,7 +299,7 @@ class EditModalView extends ModalView { editView .save() .then(() => { - let wasNew = !this.id; + const wasNew = !this.id; if (wasNew) { this.id = model.id; @@ -311,10 +311,10 @@ class EditModalView extends ModalView { this.dialog.close(); if (wasNew) { - let url = '#' + this.scope + '/view/' + model.id; - let name = model.get('name'); + const url = '#' + this.scope + '/view/' + model.id; + const name = model.get('name') || this.model.id; - let msg = this.translate('Created') + '\n' + + const msg = this.translate('Created') + '\n' + `[${name}](${url})`; Espo.Ui.notify(msg, 'success', 4000, {suppress: true});