mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
💄 外观调整
This commit is contained in:
parent
95a01f5a16
commit
01e9b06847
4 changed files with 3 additions and 15 deletions
|
|
@ -351,9 +351,11 @@ export const processSync = (data?: IWebSocketData) => {
|
|||
}
|
||||
return;
|
||||
}
|
||||
iconElement.firstElementChild.classList.remove("fn__rotate");
|
||||
if (data.code === 0) { // syncing
|
||||
iconElement.classList.add("toolbar__item--active");
|
||||
useElement.setAttribute("xlink:href", "#iconCloudSync");
|
||||
iconElement.firstElementChild.classList.add("fn__rotate");
|
||||
useElement.setAttribute("xlink:href", "#iconRefresh");
|
||||
} else if (data.code === 2) { // error
|
||||
iconElement.classList.remove("toolbar__item--active");
|
||||
useElement.setAttribute("xlink:href", "#iconCloudError");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue