Skip to content

Commit

Permalink
3.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Sep 19, 2024
1 parent 4c97eb0 commit 90b1cb2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Release Notes for Campaign

## 3.5.0 - Unreleased
## 3.5.0 - 2024-09-19

### Added

Expand All @@ -12,7 +12,7 @@
- Improved the status colours of element types.
- Improved the French translation ([#484](https://github.com/putyourlightson/craft-campaign/issues/484)).
- Improved the German translation.
- Renamed the “draft” sendout status to “unsent”.
- Renamed the “Draft” sendout status to “Unsent”.

### Fixed

Expand Down
18 changes: 9 additions & 9 deletions src/elements/SendoutElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@
*/
class SendoutElement extends Element
{
/**
* @const string
*/
public const STATUS_UNSENT = 'unsent';

/**
* @const string
*/
Expand Down Expand Up @@ -99,11 +104,6 @@ class SendoutElement extends Element
*/
public const STATUS_FAILED = 'failed';

/**
* @const string
*/
public const STATUS_UNSENT = 'unsent';

/**
* Returns the sendout types.
*/
Expand Down Expand Up @@ -201,6 +201,10 @@ public static function hasStatuses(): bool
public static function statuses(): array
{
return [
self::STATUS_UNSENT => [
'label' => Craft::t('campaign', 'Unsent'),
'color' => Color::Gray,
],
self::STATUS_SENT => [
'label' => Craft::t('campaign', 'Sent'),
'color' => Color::Teal,
Expand Down Expand Up @@ -228,10 +232,6 @@ public static function statuses(): array
'label' => Craft::t('campaign', 'Failed'),
'color' => Color::Black,
],
self::STATUS_UNSENT => [
'label' => Craft::t('campaign', 'Unsent'),
'color' => Color::Gray,
],
];
}

Expand Down

0 comments on commit 90b1cb2

Please sign in to comment.