mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 01:50:12 +01:00
This commit is contained in:
parent
f6cdbb7c4d
commit
df81bff4fc
1 changed files with 3 additions and 2 deletions
|
|
@ -48,7 +48,8 @@ export class Outline extends Model {
|
||||||
this.parent.updateTitle(data.data.title);
|
this.parent.updateTitle(data.data.title);
|
||||||
} else {
|
} else {
|
||||||
this.updateDocTitle({
|
this.updateDocTitle({
|
||||||
title: data.data.title
|
title: data.data.title,
|
||||||
|
icon: Constants.ZWSP
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
@ -176,7 +177,7 @@ export class Outline extends Model {
|
||||||
if (this.type === "pin") {
|
if (this.type === "pin") {
|
||||||
if (ial) {
|
if (ial) {
|
||||||
let iconHTML = `<span class="b3-list-item__graphic">${unicode2Emoji(ial.icon || Constants.SIYUAN_IMAGE_FILE)}</span>`;
|
let iconHTML = `<span class="b3-list-item__graphic">${unicode2Emoji(ial.icon || Constants.SIYUAN_IMAGE_FILE)}</span>`;
|
||||||
if (typeof ial.icon === "undefined" && this.headerElement.nextElementSibling.firstElementChild) {
|
if (ial.icon === Constants.ZWSP && this.headerElement.nextElementSibling.firstElementChild) {
|
||||||
iconHTML = this.headerElement.nextElementSibling.firstElementChild.outerHTML;
|
iconHTML = this.headerElement.nextElementSibling.firstElementChild.outerHTML;
|
||||||
}
|
}
|
||||||
this.headerElement.nextElementSibling.innerHTML = `${iconHTML}
|
this.headerElement.nextElementSibling.innerHTML = `${iconHTML}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue