High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
JavaScript campaigncampaign-managementemail-marketingemail-subscriptionlistmonkmailing-listnewsletternewsletter-managementnewsletter-softwareself-hostedsms-gatewaysmtptransactional-emails
Add ID and UUID info to list, subscriber, and campaign views
Kailash Nadhab1a6bbed8af
diff --git a/frontend/my/src/Campaign.js b/frontend/my/src/Campaign.jsindex baaa8b32..9655acac 100644--- a/frontend/my/src/Campaign.js+++ b/frontend/my/src/Campaign.js@@ -481,10 +481,13 @@ class Campaign extends React.PureComponent {<Col span={ 16 }>{ !this.state.record.id && <h1>Create a campaign</h1> }{ this.state.record.id &&- <h1>- <Tag color={ cs.CampaignStatusColors[this.state.record.status] }>{ this.state.record.status }</Tag>- { this.state.record.name }- </h1>+ <div>+ <h1>+ <Tag color={ cs.CampaignStatusColors[this.state.record.status] }>{ this.state.record.status }</Tag>+ { this.state.record.name }+ </h1>+ <span className="text-tiny text-grey">ID { this.state.record.id } — UUID { this.state.record.uuid }</span>+ </div>}</Col><Col span={ 8 } className="right">diff --git a/frontend/my/src/Lists.js b/frontend/my/src/Lists.jsindex 1fac1432..162fb445 100644--- a/frontend/my/src/Lists.js+++ b/frontend/my/src/Lists.js@@ -5,6 +5,11 @@ import { Row, Col, Modal, Form, Input, Select, Button, Table, Icon, Tooltip, Tagimport Utils from "./utils"import * as cs from "./constants"+const tagColors = {+ "private": "orange",+ "public": "green"+}+class CreateFormDef extends React.PureComponent {state = {confirmDirty: false,@@ -46,6 +51,22 @@ class CreateFormDef extends React.PureComponent {})}+ modalTitle(formType, record) {+ if(formType === cs.FormCreate) {+ return "Create a list"+ }++ return (+ <div>+ <Tag color={ tagColors.hasOwnProperty(record.type) ? tagColors[record.type] : "" }>{ record.type }</Tag>+ {" "}+ { record.name }+ <br />+ <span className="text-tiny text-grey">ID { record.id } — UUID { record.uuid }</span>+ </div>+ )+ }+render() {const { formType, record, onClose } = this.propsconst { getFieldDecorator } = this.props.form@@ -60,7 +81,7 @@ class CreateFormDef extends React.PureComponent {}return (- <Modal visible={ true } title={ formType === cs.FormCreate ? "Create a list" : record.name }+ <Modal visible={ true } title={ this.modalTitle(this.state.form, record) }okText={ this.state.form === cs.FormCreate ? "Create" : "Save" }confirmLoading={ this.state.modalWaiting }onCancel={ onClose }diff --git a/frontend/my/src/Subscribers.js b/frontend/my/src/Subscribers.jsindex e0688740..d95b51a0 100644--- a/frontend/my/src/Subscribers.js+++ b/frontend/my/src/Subscribers.js@@ -86,11 +86,13 @@ class CreateFormDef extends React.PureComponent {}return (- <span>- <Tag color={ tagColors.hasOwnProperty(record.status) ? tagColors[record.status] : "" }>{ record.status }</Tag>- {" "}+ <div>+ <Tag color={ tagColors.hasOwnProperty(record.status) ? tagColors[record.status] : "" }>{ record.status }</Tag>+ {" "}{ record.name } ({ record.email })- </span>+ <br />+ <span className="text-tiny text-grey">ID { record.id } — UUID { record.uuid }</span>+ </div>)}