|
|
|
@ -57,11 +57,24 @@ class Controller {
|
|
|
|
|
view.removeDirTree();
|
|
|
|
|
view.drawDirTree(value, undefined, this);
|
|
|
|
|
view.dirTreeToggler();
|
|
|
|
|
this.updateFileStats();
|
|
|
|
|
}.bind(this),
|
|
|
|
|
function (error) {}
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
updateFileStats() {
|
|
|
|
|
this.model.getGitStatusTree().then(
|
|
|
|
|
function (value) {
|
|
|
|
|
this.view.statDirTree(value, undefined);
|
|
|
|
|
console.log(value);
|
|
|
|
|
}.bind(this),
|
|
|
|
|
function (error) {
|
|
|
|
|
console.log(error);
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
saveSettings() {
|
|
|
|
|
let repo = document.getElementById("inputRepository");
|
|
|
|
|
let baseDir = document.getElementById("inputBaseDir");
|
|
|
|
@ -89,6 +102,8 @@ class Controller {
|
|
|
|
|
var textArea = document.getElementsByTagName("textarea")[0];
|
|
|
|
|
this.model.saveFile(this.openedFile, textArea.value);
|
|
|
|
|
this.openedFileValue = textArea.value;
|
|
|
|
|
this.saveButton()
|
|
|
|
|
this.saveButton();
|
|
|
|
|
|
|
|
|
|
this.updateFileStats();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|