disabled status

pull/30205/head
Lunny Xiao 2025-09-03 22:09:38 +07:00
parent f681274e5d
commit 6411e212af
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 19 additions and 1 deletions

@ -311,6 +311,19 @@ const hasAction = (actionType) => {
return store.selectedWorkflow?.capabilities?.available_actions?.includes(actionType);
};
const getStatusClass = (item) => {
if (!item.isConfigured) {
return 'status-inactive'; // Gray dot for unconfigured
}
// For configured workflows, check enabled status
if (item.enabled === false) {
return 'status-disabled'; // Red dot for disabled
}
return 'status-active'; // Green dot for enabled
};
const isItemSelected = (item) => {
if (!store.selectedItem) return false;
@ -497,7 +510,7 @@ onUnmounted(() => {
<span class="status-indicator">
<span
v-html="svg('octicon-dot-fill')"
:class="item.isConfigured ? 'status-active' : 'status-inactive'"
:class="getStatusClass(item)"
/>
</span>
<div class="workflow-title">{{ item.display_name }}</div>
@ -788,6 +801,11 @@ onUnmounted(() => {
font-size: 0.75rem;
}
.status-indicator .status-disabled {
color: #dc3545;
font-size: 0.75rem;
}
/* Main Content Area */
.workflow-placeholder {
flex: 1;