From ec082df012d61c3edc6533c38885404f6780ed6b Mon Sep 17 00:00:00 2001 From: Thibaud Dauce Date: Wed, 18 Dec 2024 09:54:22 +0100 Subject: [PATCH] Show deleted dataservices status (#214) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I think it fixes https://github.com/datagouv/front-end/issues/136 but I don't understand the problem in the issue… @geoffreyaldebert maybe? --- .../AdminDataservicesTable/AdminDataservicesTable.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/components/AdminTable/AdminDataservicesTable/AdminDataservicesTable.vue b/components/AdminTable/AdminDataservicesTable/AdminDataservicesTable.vue index d4a25791..dd311f52 100644 --- a/components/AdminTable/AdminDataservicesTable/AdminDataservicesTable.vue +++ b/components/AdminTable/AdminDataservicesTable/AdminDataservicesTable.vue @@ -99,7 +99,13 @@ function sorted(column: DataserviceSortedBy) { } function getStatus(dataservice: Dataservice): { label: string, type: AdminBadgeType } { - if (dataservice.private) { + if (dataservice.deleted_at) { + return { + label: t('Deleted'), + type: 'danger', + } + } + else if (dataservice.private) { return { label: t('Draft'), type: 'secondary',