mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-11-22 19:47:22 +01:00
Improve readavility
This commit is contained in:
parent
b0f2b209a2
commit
dc11f1afbf
1 changed files with 8 additions and 7 deletions
|
@ -244,13 +244,14 @@ export default Vue.extend({
|
|||
},
|
||||
|
||||
goRoot(silent = false) {
|
||||
if (this.folder || this.file) {
|
||||
this.file = null;
|
||||
this.folder = null;
|
||||
this.hierarchyFolders = [];
|
||||
this.$emit('move-root', silent);
|
||||
this.fetch();
|
||||
}
|
||||
// すでにrootにいるなら何もしない
|
||||
if (this.folder == null && this.file == null) return;
|
||||
|
||||
this.file = null;
|
||||
this.folder = null;
|
||||
this.hierarchyFolders = [];
|
||||
this.$emit('move-root', silent);
|
||||
this.fetch();
|
||||
},
|
||||
|
||||
fetch() {
|
||||
|
|
Loading…
Reference in a new issue