Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: abnormal status display of plugin management (#3945)
#### What type of PR is this? /kind improvement /area console /milestone 2.6.x #### What this PR does / why we need it: 重构 Console 端插件异常状态的判断和显示,改动如下: 1. 移除插件名称旁边的启用状态。 2. 切换按钮的状态是期望值,意思就是不与插件实际状态一致。 3. 小红点出现的时机为:插件的实际状态与期望状态不一致以及插件本身出了异常。 4. 插件详情页面支持横幅显示插件异常状态。 <img width="1358" alt="image" src="https://github.com/halo-dev/halo/assets/21301288/42408d1f-7975-4aef-9373-d828994501b3"> <img width="1383" alt="image" src="https://github.com/halo-dev/halo/assets/21301288/033efdef-470b-4570-94c1-da64d9ea0db9"> #### Which issue(s) this PR fixes: Fixes #3940 #### Special notes for your reviewer: 测试方式: 1. 想办法将插件状态变成异常,比如在开发环境将 runtime-mode 改为 deployment。 2. 检查 Console 端插件管理中的 UI 表现是否和上面的描述一致。 #### Does this PR introduce a user-facing change? ```release-note 重构 Console 插件管理的异常状态显示。 ```
- Loading branch information
Showing
3 changed files
with
35 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters