mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 20:49:06 +01:00
[Client] Fix bug
This commit is contained in:
parent
57e783c9c5
commit
2768fb8c87
@ -613,6 +613,11 @@
|
||||
this.update();
|
||||
};
|
||||
|
||||
this.appendFile = file => this.addFile(file);
|
||||
this.appendFolder = file => this.addFolder(file);
|
||||
this.prependFile = file => this.addFile(file, true);
|
||||
this.prependFolder = file => this.addFolder(file, true);
|
||||
|
||||
this.goRoot = () => {
|
||||
// 既にrootにいるなら何もしない
|
||||
if (this.folder == null) return;
|
||||
@ -668,8 +673,8 @@
|
||||
let flag = false;
|
||||
const complete = () => {
|
||||
if (flag) {
|
||||
fetchedFolders.forEach(this.addFolder);
|
||||
fetchedFiles.forEach(this.addFile);
|
||||
fetchedFolders.forEach(this.appendFolder);
|
||||
fetchedFiles.forEach(this.appendFile);
|
||||
this.update({
|
||||
fetching: false
|
||||
});
|
||||
|
@ -277,6 +277,11 @@
|
||||
this.update();
|
||||
};
|
||||
|
||||
this.appendFile = file => this.addFile(file);
|
||||
this.appendFolder = file => this.addFolder(file);
|
||||
this.prependFile = file => this.addFile(file, true);
|
||||
this.prependFolder = file => this.addFolder(file, true);
|
||||
|
||||
this.goRoot = () => {
|
||||
if (this.folder || this.file) {
|
||||
this.update({
|
||||
@ -335,8 +340,8 @@
|
||||
let flag = false;
|
||||
const complete = () => {
|
||||
if (flag) {
|
||||
fetchedFolders.forEach(this.addFolder);
|
||||
fetchedFiles.forEach(this.addFile);
|
||||
fetchedFolders.forEach(this.appendFolder);
|
||||
fetchedFiles.forEach(this.appendFile);
|
||||
this.update({
|
||||
fetching: false
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user