mirror of https://github.com/halo-dev/halo-admin
refactor: isStarted variable on the plugin detail page
Signed-off-by: Ryan Wang <i@ryanc.cc>pull/591/head
parent
7bdbf2500f
commit
c9a21957cd
|
@ -9,11 +9,7 @@ import { rbacAnnotations } from "@/constants/annotations";
|
||||||
import { usePluginLifeCycle } from "./composables/use-plugin";
|
import { usePluginLifeCycle } from "./composables/use-plugin";
|
||||||
|
|
||||||
const plugin = inject<Ref<Plugin>>("plugin", ref({} as Plugin));
|
const plugin = inject<Ref<Plugin>>("plugin", ref({} as Plugin));
|
||||||
const { changeStatus } = usePluginLifeCycle(plugin);
|
const { changeStatus, isStarted } = usePluginLifeCycle(plugin);
|
||||||
|
|
||||||
const isStarted = computed(() => {
|
|
||||||
return plugin.value.status?.phase === "STARTED" && plugin.value.spec.enabled;
|
|
||||||
});
|
|
||||||
|
|
||||||
// TODO 临时解决方案
|
// TODO 临时解决方案
|
||||||
interface RoleTemplateGroup {
|
interface RoleTemplateGroup {
|
||||||
|
|
Loading…
Reference in New Issue