mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2025-01-18 11:32:56 +09:00
Improve readavility
This commit is contained in:
parent
47b3711ba4
commit
8ce85c9d28
@ -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 New Issue
Block a user