From ef7b0ea2260fd484d4dae4b63b0804b13a20e3ca Mon Sep 17 00:00:00 2001 From: CNE FICHEPOIL Pierre Date: Thu, 13 Feb 2025 16:37:52 +0100 Subject: [PATCH 1/2] Fixed call to notify --- studio/src/main/resources/static/js/studio-utils.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/studio/src/main/resources/static/js/studio-utils.js b/studio/src/main/resources/static/js/studio-utils.js index 62c537e5f1..0bffc22e9b 100644 --- a/studio/src/main/resources/static/js/studio-utils.js +++ b/studio/src/main/resources/static/js/studio-utils.js @@ -47,15 +47,15 @@ function globalNotify(title, message, type) { { title: "" + title + "", message: message, + }, + { + type: type, z_index: 100000, placement: { from: "bottom", align: "right", }, }, - { - type: type, - }, ); } @@ -248,4 +248,4 @@ function globalFormatSpace(value) { if (value > 1000000) return globalFormatDouble(value / 1000000) + "MB"; if (value > 1000) return globalFormatDouble(value / 1000) + "KB"; return value; -} +} \ No newline at end of file From 84b1aa2866649392321f9e49523933ae0ca2355a Mon Sep 17 00:00:00 2001 From: CNE FICHEPOIL Pierre Date: Thu, 13 Feb 2025 16:43:08 +0100 Subject: [PATCH 2/2] Change notification placement to top-center in globalNotify function --- studio/src/main/resources/static/js/studio-utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/studio/src/main/resources/static/js/studio-utils.js b/studio/src/main/resources/static/js/studio-utils.js index 0bffc22e9b..7f5b933bff 100644 --- a/studio/src/main/resources/static/js/studio-utils.js +++ b/studio/src/main/resources/static/js/studio-utils.js @@ -52,8 +52,8 @@ function globalNotify(title, message, type) { type: type, z_index: 100000, placement: { - from: "bottom", - align: "right", + from: "top", + align: "center", }, }, );