fix: 🐛 change archived enum value to unpublished

This commit is contained in:
Alexis Gousseau 2025-09-29 14:17:51 +02:00
parent 798917d556
commit 92aa91872e
No known key found for this signature in database
GPG key ID: 4A614CB3DBBA2406
4 changed files with 13 additions and 13 deletions

View file

@ -8,9 +8,9 @@ enum PageStatusEnum: int
{
use BaseEnum;
case draft = 1;
case published = 2;
case archived = 3;
case draft = 1;
case published = 2;
case unpublished = 3;
/**
* Optionnal labels definition.
@ -18,8 +18,8 @@ enum PageStatusEnum: int
* @phpstan-ignore-next-line
*/
private const LABELS = [
self::draft->name => 'enums.page-status.draft',
self::published->name => 'enums.page-status.published',
self::archived->name => 'enums.page-status.archived',
self::draft->name => 'enums.page-status.draft',
self::published->name => 'enums.page-status.published',
self::unpublished->name => 'enums.page-status.unpublished',
];
}

View file

@ -7,9 +7,9 @@ return [
"visitor" => "Visitor",
],
'page-status' => [
'draft' => 'Draft',
'published' => 'Published',
'archived' => 'Archived',
'draft' => 'Draft',
'published' => 'Published',
'unpublished' => 'Unpublished',
],
'dynamic-field-types' => [
'string' => 'String',

View file

@ -7,9 +7,9 @@ return [
"visitor" => "Visiteur",
],
'page-status' => [
'draft' => 'Brouillon',
'published' => 'Publié',
'archived' => 'Archivé',
'draft' => 'Brouillon',
'published' => 'Publié',
'unpublished' => 'Dépublié',
],
'dynamic-field-types' => [
'string' => 'Chaîne de caractères',

View file

@ -21,7 +21,7 @@ export default function DynamicPageStatusBadge({
color: "bg-gray-200 dark:bg-gray-900",
Icon: PencilLineIcon,
},
[enumDynamicPageStatus.archived.value]: {
[enumDynamicPageStatus.unpublished.value]: {
color: "bg-red-200 dark:bg-red-900",
Icon: XIcon,
},