mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-07 17:28:50 +01:00
This commit is contained in:
parent
4dd124b88a
commit
b5e6da4569
1 changed files with 6 additions and 4 deletions
|
|
@ -295,7 +295,7 @@ export class Backlink extends Model {
|
|||
}
|
||||
});
|
||||
|
||||
this.searchBacklinks();
|
||||
this.searchBacklinks(true);
|
||||
|
||||
if (this.type === "pin") {
|
||||
setPanelFocus(this.element.firstElementChild);
|
||||
|
|
@ -415,9 +415,9 @@ export class Backlink extends Model {
|
|||
});
|
||||
}
|
||||
|
||||
private searchBacklinks(reload = false) {
|
||||
private searchBacklinks(init = false) {
|
||||
const element = this.element.querySelector('.block__icon[data-type="refresh"] svg');
|
||||
if (element.classList.contains("fn__rotate") && !reload) {
|
||||
if (element.classList.contains("fn__rotate")) {
|
||||
return;
|
||||
}
|
||||
element.classList.add("fn__rotate");
|
||||
|
|
@ -428,7 +428,9 @@ export class Backlink extends Model {
|
|||
mk: this.inputsElement[1].value,
|
||||
id: this.blockId,
|
||||
}, response => {
|
||||
this.saveStatus();
|
||||
if (!init) {
|
||||
this.saveStatus();
|
||||
}
|
||||
this.render(response.data);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue