#101 dialog i18n are change to new approach

This commit is contained in:
Agriya Dev5
2021-05-21 18:15:09 +05:30
parent c60d1bf645
commit 88512f2088
2 changed files with 26 additions and 1 deletions

View File

@@ -150,11 +150,13 @@ class LayersPanel {
menuMore.value = "layer_moreopts";
menuMore.setAttribute("leftclick", true);
document.body.append(menuMore);
menuMore.init(i18next);
const menuLayerBox = document.createElement("se-cmenu-layers");
menuLayerBox.setAttribute("id", "se-cmenu-layers-list");
menuLayerBox.value = "layerlist";
menuLayerBox.setAttribute("leftclick", false);
document.body.append(menuLayerBox);
menuLayerBox.init(i18next);
document
.getElementById("layer_new")
.addEventListener("click", this.newLayer.bind(this));