diff --git a/frontend/src/widgets/instance/Shortcut.vue b/frontend/src/widgets/instance/Shortcut.vue index 27a98082..f174a6fc 100644 --- a/frontend/src/widgets/instance/Shortcut.vue +++ b/frontend/src/widgets/instance/Shortcut.vue @@ -67,6 +67,7 @@ const instanceOperations = computed(() => message.success(t("TXT_CODE_e13abbb1")); }, loading: openLoading.value, + disabled: containerState.isDesignMode, condition: () => isStopped.value }, { @@ -77,6 +78,7 @@ const instanceOperations = computed(() => message.success(t("TXT_CODE_efb6d377")); }, loading: stopLoading.value, + disabled: containerState.isDesignMode, condition: () => isRunning.value }, { @@ -87,6 +89,7 @@ const instanceOperations = computed(() => message.success(t("实例正在重启")); }, loading: restartLoading.value, + disabled: containerState.isDesignMode, condition: () => isRunning.value }, { @@ -97,6 +100,7 @@ const instanceOperations = computed(() => message.success(t("TXT_CODE_efb6d377")); }, loading: killLoading.value, + disabled: containerState.isDesignMode, condition: () => isRunning.value }, { @@ -116,6 +120,7 @@ const instanceOperations = computed(() => message.success(t("实例正在更新")); }, loading: updateLoading.value, + disabled: containerState.isDesignMode, condition: () => isStopped.value }, { @@ -129,7 +134,8 @@ const instanceOperations = computed(() => instanceId } }); - } + }, + disabled: containerState.isDesignMode } ]) ); @@ -137,12 +143,7 @@ const instanceOperations = computed(() => - -