|
|
@ -102,8 +102,6 @@ function drawLabel() {
|
|
|
|
container.appendChild(temporaryLabel);
|
|
|
|
container.appendChild(temporaryLabel);
|
|
|
|
|
|
|
|
|
|
|
|
new Promise(function (resolve, reject) {
|
|
|
|
new Promise(function (resolve, reject) {
|
|
|
|
// TODO: show the modal for text input in overlay
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// then if the user click insert and there is a value in the input-- > resolve the promise and return the text input to create the label,
|
|
|
|
// then if the user click insert and there is a value in the input-- > resolve the promise and return the text input to create the label,
|
|
|
|
// if the user click cancel-- > reject the promise and don't create the label
|
|
|
|
// if the user click cancel-- > reject the promise and don't create the label
|
|
|
|
textForm.classList.add("visible");
|
|
|
|
textForm.classList.add("visible");
|
|
|
|