Skip to content

Commit

Permalink
Show deleted dataservices status (#214)
Browse files Browse the repository at this point in the history
I think it fixes #136 but I
don't understand the problem in the issue… @geoffreyaldebert maybe?
  • Loading branch information
ThibaudDauce authored Dec 18, 2024
1 parent dd7f8d7 commit ec082df
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit ec082df

Please sign in to comment.