From 01e9b0684712ea54df4f7f4b5c0f7932f79a96c9 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 27 Jan 2023 14:33:03 +0800 Subject: [PATCH] =?UTF-8?q?:lipstick:=20=E5=A4=96=E8=A7=82=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/appearance/icons/ant/icon.js | 4 ---- app/appearance/icons/index.html | 6 ------ app/appearance/icons/material/icon.js | 4 ---- app/src/dialog/processSystem.ts | 4 +++- 4 files changed, 3 insertions(+), 15 deletions(-) diff --git a/app/appearance/icons/ant/icon.js b/app/appearance/icons/ant/icon.js index 46238ab47..8558ae792 100644 --- a/app/appearance/icons/ant/icon.js +++ b/app/appearance/icons/ant/icon.js @@ -6,10 +6,6 @@ document.body.insertAdjacentHTML('afterBegin', ` - - - - diff --git a/app/appearance/icons/index.html b/app/appearance/icons/index.html index 14cb19c9a..7f06d1fbd 100644 --- a/app/appearance/icons/index.html +++ b/app/appearance/icons/index.html @@ -40,12 +40,6 @@ iconCloudOff -
- - - - iconCloudSync -
diff --git a/app/appearance/icons/material/icon.js b/app/appearance/icons/material/icon.js index e73afad1a..13809b3e2 100644 --- a/app/appearance/icons/material/icon.js +++ b/app/appearance/icons/material/icon.js @@ -9,10 +9,6 @@ document.body.insertAdjacentHTML('afterbegin', ` - - - - diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.ts index 8b00f8e28..ac569965c 100644 --- a/app/src/dialog/processSystem.ts +++ b/app/src/dialog/processSystem.ts @@ -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");