add loading gif

This commit is contained in:
2020-12-22 18:37:02 +01:00
parent c48313f298
commit ed2c6b8a1a
5 changed files with 20 additions and 115 deletions

View File

@@ -19,8 +19,11 @@ class Controller {
cloneRep(repurl) {
var that = this;
var loading = document.getElementsByClassName("loading")[0];
loading.style.display = "grid";
this.model.cloneRep().then(
function (value) {
loading.style.removeProperty("display");
that.redrawDirTree(that.view);
},
function (error) {}