mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-27 08:23:02 +00:00
[Client] Fix bug
This commit is contained in:
parent
8ed05b7539
commit
f0776a80fc
2 changed files with 14 additions and 4 deletions
|
@ -613,6 +613,11 @@
|
||||||
this.update();
|
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 = () => {
|
this.goRoot = () => {
|
||||||
// 既にrootにいるなら何もしない
|
// 既にrootにいるなら何もしない
|
||||||
if (this.folder == null) return;
|
if (this.folder == null) return;
|
||||||
|
@ -668,8 +673,8 @@
|
||||||
let flag = false;
|
let flag = false;
|
||||||
const complete = () => {
|
const complete = () => {
|
||||||
if (flag) {
|
if (flag) {
|
||||||
fetchedFolders.forEach(this.addFolder);
|
fetchedFolders.forEach(this.appendFolder);
|
||||||
fetchedFiles.forEach(this.addFile);
|
fetchedFiles.forEach(this.appendFile);
|
||||||
this.update({
|
this.update({
|
||||||
fetching: false
|
fetching: false
|
||||||
});
|
});
|
||||||
|
|
|
@ -277,6 +277,11 @@
|
||||||
this.update();
|
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 = () => {
|
this.goRoot = () => {
|
||||||
if (this.folder || this.file) {
|
if (this.folder || this.file) {
|
||||||
this.update({
|
this.update({
|
||||||
|
@ -335,8 +340,8 @@
|
||||||
let flag = false;
|
let flag = false;
|
||||||
const complete = () => {
|
const complete = () => {
|
||||||
if (flag) {
|
if (flag) {
|
||||||
fetchedFolders.forEach(this.addFolder);
|
fetchedFolders.forEach(this.appendFolder);
|
||||||
fetchedFiles.forEach(this.addFile);
|
fetchedFiles.forEach(this.appendFile);
|
||||||
this.update({
|
this.update({
|
||||||
fetching: false
|
fetching: false
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue