mirror of https://github.com/halo-dev/halo-admin
perf: merge plugin uninstallation options button (#779)
#### What type of PR is this? /kind improvement #### What this PR does / why we need it: 合并卸载插件的选项。 #### Which issue(s) this PR fixes: Fixes https://github.com/halo-dev/halo/issues/2978 #### Screenshots: before: ![image](https://user-images.githubusercontent.com/21301288/208060524-fa9de196-ccd2-43dc-82e7-21eefddec44b.png) after: <img width="466" alt="image" src="https://user-images.githubusercontent.com/21301288/208060456-77514178-1935-43f4-9d50-13bc606d5573.png"> #### Special notes for your reviewer: 测试方式: 1. 测试插件卸载的两种选项是否功能正常。 #### Does this PR introduce a user-facing change? ```release-note 优化 Console 端的插件卸载选项布局 ```pull/777/head^2
parent
03d2b5ae43
commit
57f4f2226f
|
@ -132,12 +132,31 @@ const onUpgradeModalClose = () => {
|
||||||
>
|
>
|
||||||
升级
|
升级
|
||||||
</VButton>
|
</VButton>
|
||||||
<VButton v-close-popper block type="danger" @click="uninstall">
|
<FloatingDropdown class="w-full" placement="left" :triggers="['click']">
|
||||||
卸载
|
<VButton block type="danger"> 卸载 </VButton>
|
||||||
</VButton>
|
<template #popper>
|
||||||
<VButton v-close-popper block type="danger" @click="uninstall(true)">
|
<div class="w-52 p-2">
|
||||||
卸载并删除配置
|
<VSpace class="w-full" direction="column">
|
||||||
</VButton>
|
<VButton
|
||||||
|
v-close-popper.all
|
||||||
|
block
|
||||||
|
type="danger"
|
||||||
|
@click="uninstall"
|
||||||
|
>
|
||||||
|
卸载
|
||||||
|
</VButton>
|
||||||
|
<VButton
|
||||||
|
v-close-popper.all
|
||||||
|
block
|
||||||
|
type="danger"
|
||||||
|
@click="uninstall(true)"
|
||||||
|
>
|
||||||
|
卸载并删除配置
|
||||||
|
</VButton>
|
||||||
|
</VSpace>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</FloatingDropdown>
|
||||||
</template>
|
</template>
|
||||||
</VEntity>
|
</VEntity>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -55,7 +55,9 @@ export function usePluginLifeCycle(
|
||||||
: "确定要卸载该插件吗?"
|
: "确定要卸载该插件吗?"
|
||||||
}`,
|
}`,
|
||||||
description: `${
|
description: `${
|
||||||
enabled ? "当前插件还在启用状态,将在停止运行后卸载。" : ""
|
enabled
|
||||||
|
? "当前插件还在启用状态,将在停止运行后卸载,该操作不可恢复。"
|
||||||
|
: "该操作不可恢复。"
|
||||||
}`,
|
}`,
|
||||||
confirmType: "danger",
|
confirmType: "danger",
|
||||||
confirmText: `${enabled ? "停止运行并卸载" : "卸载"}`,
|
confirmText: `${enabled ? "停止运行并卸载" : "卸载"}`,
|
||||||
|
|
Loading…
Reference in New Issue