mirror of
https://github.com/go-gitea/gitea.git
synced 2026-02-25 21:05:54 +01:00
disabled status
This commit is contained in:
parent
f681274e5d
commit
6411e212af
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user