diff --git a/app/Models/WebSocketDialogMsg.php b/app/Models/WebSocketDialogMsg.php index 8cae5439e..d6c04fdef 100644 --- a/app/Models/WebSocketDialogMsg.php +++ b/app/Models/WebSocketDialogMsg.php @@ -628,6 +628,9 @@ class WebSocketDialogMsg extends AbstractModel if (!empty($msg['title_raw'])) { return $msg['title_raw']; } + if ($msg['type'] === 'task_list' && count($msg['list']) === 1) { + return Doo::translate($msg['title']) . ": " . $msg['list'][0]['name']; + } if (!empty($msg['title'])) { return Doo::translate($msg['title']); } diff --git a/resources/assets/js/functions/web.js b/resources/assets/js/functions/web.js index 8f2a88594..c76692b52 100755 --- a/resources/assets/js/functions/web.js +++ b/resources/assets/js/functions/web.js @@ -454,6 +454,9 @@ import {MarkdownPreview} from "../store/markdown"; if (msg.title_raw) { return msg.title_raw } + if (msg.type === 'task_list' && $A.arrayLength(msg.list) === 1) { + return $A.L(msg.title) + ": " + msg.list[0].name + } if (msg.title) { return $A.L(msg.title) }