mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
add: more commits
Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// A template is "sent" once it has a live title/message — that's the only
|
||||
// content services/notificationTemplate.service.js's renderNotification() ever
|
||||
// reads on the backend. Editing a sent template writes to draft_title/
|
||||
// draft_message instead, so "pending changes" means there's a draft sitting on
|
||||
// top of the live version. Mirrors emailTemplateStatus.data.js.
|
||||
export const hasPendingChanges = (t) =>
|
||||
t?.status === "sent" && (t?.draft_title != null || t?.draft_message != null);
|
||||
|
||||
export const STATUS_META = {
|
||||
draft: { label: "Draft", badgeClass: "bg-muted text-muted-foreground border-border" },
|
||||
sent: { label: "Sent", badgeClass: "bg-emerald-100 text-emerald-700 border-emerald-400 dark:bg-emerald-900/40 dark:text-emerald-400 dark:border-emerald-700" },
|
||||
};
|
||||
Reference in New Issue
Block a user