fix: 🐛 change archived enum value to unpublished
This commit is contained in:
parent
798917d556
commit
92aa91872e
4 changed files with 13 additions and 13 deletions
|
|
@ -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',
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue