mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-05 03:05:52 +02:00
Fix bugs
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user