fix wrong label on save
when saving an entry the label was reset on complete so the desired done label was never shown
This commit is contained in:
parent
2221fd408d
commit
ccb9eed573
1 changed files with 1 additions and 2 deletions
|
@ -273,12 +273,11 @@ function saveEntry(element, toasting) {
|
|||
return;
|
||||
}
|
||||
|
||||
let previousInnerHTML = element.innerHTML;
|
||||
element.innerHTML = '<span class="icon-label">' + element.dataset.labelLoading + '</span>';
|
||||
|
||||
let request = new RequestBuilder(element.dataset.saveUrl);
|
||||
request.withCallback(() => {
|
||||
element.innerHTML = previousInnerHTML;
|
||||
element.innerHTML = '<span class="icon-label">' + element.dataset.labelDone + '</span>';
|
||||
element.dataset.completed = true;
|
||||
if (toasting) {
|
||||
let iconElement = document.querySelector("template#icon-save");
|
||||
|
|
Loading…
Reference in a new issue