From e186fe21022ecec1fbbe0f82b9f0b68b4c4cecee Mon Sep 17 00:00:00 2001 From: Norman Niati Date: Tue, 9 Jun 2026 15:47:52 +0200 Subject: [PATCH] feat(ui): apply LjStatus on identity status icons Replaces the ad-hoc lock icons, status chip and `.bdot` dots across the identity tables and the company edit panel with the unified component from the host: - UserListView / GroupListView / CompanyListView: locked = error, else ok - ContainerScopeView: locked = warn (keeps the existing warning colour) - CompanyEditPanel: replaces the status v-chip - DelegateListView: canAdmin / canWrite as binary active dots Standardises the non-locked rows to a green dot instead of a dash so every table reads the same. Removes the now-dead scoped CSS (.bdot, unused .dash). Refs #110 #111. --- ui/src/components/CompanyEditPanel.vue | 7 +++---- ui/src/views/CompanyListView.vue | 8 +++----- ui/src/views/ContainerScopeView.vue | 9 +++------ ui/src/views/DelegateListView.vue | 27 +++++--------------------- ui/src/views/GroupListView.vue | 8 +++----- ui/src/views/UserListView.vue | 9 +++------ 6 files changed, 20 insertions(+), 48 deletions(-) diff --git a/ui/src/components/CompanyEditPanel.vue b/ui/src/components/CompanyEditPanel.vue index 03c79bb..bda3557 100644 --- a/ui/src/components/CompanyEditPanel.vue +++ b/ui/src/components/CompanyEditPanel.vue @@ -66,9 +66,8 @@ {{ form.locked ? 'mdi-lock' : 'mdi-lock-open-variant-outline' }}
{{ t('group.locked') }}
- - {{ form.locked ? t('user.statusLocked') : t('user.statusActive') }} - +
@@ -105,7 +104,7 @@ import { ref, computed, onMounted, onBeforeUnmount } from 'vue' import { useApi, useErrorStore, useI18nStore } from '@ligoj/host' import { TYPE_ICONS } from '../composables/delegateTypes.js' -import { VibrantConfirmDialog as LigojConfirmDialog, LjButton, LjAvailabilityField } from '@ligoj/host' +import { VibrantConfirmDialog as LigojConfirmDialog, LjButton, LjAvailabilityField, LjStatus } from '@ligoj/host' const props = defineProps({ /** diff --git a/ui/src/views/CompanyListView.vue b/ui/src/views/CompanyListView.vue index 1a4cb02..9b13e07 100644 --- a/ui/src/views/CompanyListView.vue +++ b/ui/src/views/CompanyListView.vue @@ -37,10 +37,8 @@