Skip to content
Snippets Groups Projects

Résolution bug/modif UX mineurs (nom des composants renommé si besoin, l'écran...

Merged Axel Carayon requested to merge GenericiteCartes into main
4 files
+ 18
14
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -18,9 +18,13 @@ async function getMaps() {
@@ -18,9 +18,13 @@ async function getMaps() {
async function updateActiveMaps() {
async function updateActiveMaps() {
maps = await getMaps();
maps = await getMaps();
divMaps.innerHTML = "";
divMaps.innerHTML = "";
maps.forEach(map => {
if (maps.length === 0) {
addMapButton(map);
document.getElementById("title").innerHTML = "Aucun composant de carte (map) n'est déployé et actif.";
});
} else {
 
maps.forEach(map => {
 
addMapButton(map);
 
});
 
}
}
}
@@ -34,10 +38,4 @@ function addMapButton(map) {
@@ -34,10 +38,4 @@ function addMapButton(map) {
divMaps.appendChild(button);
divMaps.appendChild(button);
}
}
function formatMapName(mapName) {
mapName = mapName.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
mapName = mapName.replace(/\s/g, '');
return mapName;
}
updateActiveMaps();
updateActiveMaps();
\ No newline at end of file
Loading