Skip to content

Commit 9f99dcb

Browse files
committed
feat: add checkbox and milestone components for value change notifications
1 parent e5565fb commit 9f99dcb

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@if(isset($fromValue) && $fromValue !== $toValue)
2+
**`{{ $fieldName }}`** has been {{ $toValue ? 'checked' : 'unchecked' }}.
3+
@elseif ($toValue === true)
4+
**`{{ $fieldName }}`** has been checked.
5+
@elseif ($toValue === false)
6+
**`{{ $fieldName }}`** has been unchecked.
7+
@else
8+
**`{{ $fieldName }}`** has been set to {{ $toValue ? '' : '' }}.
9+
@endif
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@if($fromValue != null && $toValue != null)
2+
**`{{ $fieldName }}`** has been updated:
3+
- From: **`{{ $fromValue['title'] }}`**
4+
- To: **`{{ $toValue['title'] }}`**
5+
@elseif ($toValue == null)
6+
**`{{ $fieldName }}`** has been removed from the issue.
7+
@else
8+
**`{{ $fieldName }}`** has been set to **`{{ $toValue['title'] }}`**.
9+
@endif
10+
11+
@if(($toValue['due_on'] ?? null) && ($toValue['due_on'] !== ($fromValue['due_on'] ?? null)))
12+
- Due date: {{ format_date($toValue['due_on'], 'Y-m-d') }}
13+
@endif

0 commit comments

Comments
 (0)