Fix bugs
This commit is contained in:
parent
1f3e128ed5
commit
f0b0718932
13 changed files with 28 additions and 25 deletions
|
|
@ -198,7 +198,7 @@
|
|||
};
|
||||
|
||||
this.move = ev => {
|
||||
this.move(ev.item.folder);
|
||||
this.cd(ev.item.folder);
|
||||
};
|
||||
|
||||
this.cd = (target, silent = false) => {
|
||||
|
|
@ -333,10 +333,10 @@
|
|||
});
|
||||
|
||||
let flag = false;
|
||||
complete = () => {
|
||||
const complete = () => {
|
||||
if (flag) {
|
||||
fetchedFolders.forEach(folder => this.addFolder);
|
||||
fetchedFiles.forEach(file => this.addFile);
|
||||
fetchedFolders.forEach(this.addFolder);
|
||||
fetchedFiles.forEach(this.addFile);
|
||||
this.update({
|
||||
fetching: false
|
||||
});
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@
|
|||
this.folder = this.opts.folder;
|
||||
|
||||
this.onclick = () => {
|
||||
this.browser.move(this.folder);
|
||||
this.browser.cd(this.folder);
|
||||
};
|
||||
</script>
|
||||
</mk-drive-folder>
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@
|
|||
|
||||
</style>
|
||||
<script>
|
||||
getCat = require('../../common/scripts/get-cat');
|
||||
const getCat = require('../../common/scripts/get-cat');
|
||||
|
||||
this.mixin('api');
|
||||
|
||||
|
|
@ -204,7 +204,7 @@
|
|||
});
|
||||
|
||||
this.onkeydown = e => {
|
||||
if ((e.which == 10 || e.which == 13) && (e.ctrlKey || e.meta-key)) this.post();
|
||||
if ((e.which == 10 || e.which == 13) && (e.ctrlKey || e.metaKey)) this.post();
|
||||
};
|
||||
|
||||
this.onpaste = e => {
|
||||
|
|
|
|||
|
|
@ -298,7 +298,7 @@
|
|||
this.mixin('api');
|
||||
this.mixin('text');
|
||||
this.mixin('get-post-summary');
|
||||
this.mixin('openPostForm');
|
||||
this.mixin('open-post-form');
|
||||
|
||||
this.post = this.opts.post;
|
||||
this.isRepost = this.post.repost != null && this.post.text == null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue