From 8a33756e3a9a66855f8179ac30d7eed742e4e2ee Mon Sep 17 00:00:00 2001
From: Daniel Cebrian <daniel.cebrian@pandorafms.com>
Date: Mon, 27 Feb 2023 11:17:17 +0100
Subject: [PATCH] #10324 added limit in modal title

---
 pandora_console/include/javascript/pandora_ui.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/pandora_console/include/javascript/pandora_ui.js b/pandora_console/include/javascript/pandora_ui.js
index 17cb359818..a96eafc32c 100644
--- a/pandora_console/include/javascript/pandora_ui.js
+++ b/pandora_console/include/javascript/pandora_ui.js
@@ -848,6 +848,10 @@ function favMenuAction(e) {
           text: "Confirm",
           click: function() {
             data.label = $("#text-label_fav_menu").val();
+            if (data.label.length > 18) {
+              data.label = data.label.slice(0, 18) + "...";
+            }
+
             $(e).val(btoa(JSON.stringify(data)));
             favMenuAction(e);
             $(this).dialog("close");