diff --git a/src/components/quickcommandUI/QuickCommand.vue b/src/components/quickcommandUI/QuickCommand.vue index 5a72315..05be426 100644 --- a/src/components/quickcommandUI/QuickCommand.vue +++ b/src/components/quickcommandUI/QuickCommand.vue @@ -85,9 +85,11 @@ export default { }), showMessageBox: (message, icon = "success", time) => { + message = _.truncate(message, { length: 1200 }); if (icon === "success") icon = "positive"; if (icon === "error") icon = "negative"; - if (!time) time = Math.max(message.toString().length * 120, 1000); + if (typeof time === "undefined") + time = Math.max(message.toString().length * 120, 1000); Notify.create({ type: icon, message: message,