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