[Client] Fix bug

This commit is contained in:
syuilo
2017-02-23 17:12:09 +09:00
parent 2e99f57cf8
commit d4f245f51c
6 changed files with 39 additions and 39 deletions

View File

@@ -59,7 +59,7 @@
this.files = [];
this.on('mount', () => {
this.refs.browser.on('change-selected', files => {
this.refs.browser.on('change-selection', files => {
this.update({
files: files
});

View File

@@ -358,7 +358,7 @@
this.selectedFiles.push(file);
}
this.update();
this.trigger('change-selected', this.selectedFiles);
this.trigger('change-selection', this.selectedFiles);
} else {
this.cf(file);
}

View File

@@ -128,7 +128,7 @@
this.file = this.opts.file;
this.isSelected = this.browser.selectedFiles.some(f => f.id == this.file.id);
this.browser.on('change-selected', selections => {
this.browser.on('change-selection', selections => {
this.isSelected = selections.some(f => f.id == this.file.id);
});