From a52ef9291c38324eefbd5f9a20efdac92cc88c3a Mon Sep 17 00:00:00 2001 From: viglino Date: Tue, 12 Nov 2024 15:24:58 +0100 Subject: [PATCH] [UPD] Save Button on teams eleve --- assets/config.json | 1 + src/edugeo.css | 9 +++++++++ src/index.js | 1 + 3 files changed, 11 insertions(+) create mode 100644 src/edugeo.css diff --git a/assets/config.json b/assets/config.json index eeaf30b..c161a9c 100644 --- a/assets/config.json +++ b/assets/config.json @@ -1,5 +1,6 @@ { "server": "https://qlf-macarte.ign.fr/", + "server-0": "https://macarte.ign.fr/", "server-1": "https://macarte.mut-dev.ign.fr/", "server-2": "https://localhost.ign.fr/macartegpf-api/", "viewer": "https://ignf-ma-carte.github.io/mcviewer/?map=$ID&$NOTITLE", diff --git a/src/edugeo.css b/src/edugeo.css new file mode 100644 index 0000000..6faafc6 --- /dev/null +++ b/src/edugeo.css @@ -0,0 +1,9 @@ +[data-user-role="ROLE_EDUGEO_ELEVE ROLE_USER"] .fi-save, +[data-user-role="ROLE_EDUGEO_ELEVE ROLE_USER"] .fi-open { + display: none; +} + +[data-user-role="ROLE_EDUGEO_ELEVE ROLE_USER"][data-team-role="editor"] .fi-save, +[data-user-role="ROLE_EDUGEO_ELEVE ROLE_USER"][data-team-role="editor"] .fi-open { + display: block; +} \ No newline at end of file diff --git a/src/index.js b/src/index.js index b7b5e17..75264e8 100644 --- a/src/index.js +++ b/src/index.js @@ -5,6 +5,7 @@ import story from './story' import './unload' import './index.css' +import './edugeo.css' import './tools/tools' import './menu/menu'