@voplus/morpho-workspace 6.0.70 → 6.0.71
Sign up to get free protection for your applications and to get access to all the features.
- package/es/data/notification/NotificationStore.d.ts +2 -0
- package/es/data/notification/NotificationStore.js +9 -0
- package/es/data/notification/NotificationStore.js.map +1 -1
- package/es/modules/notification/components/NotificationProperties/index.js +3 -3
- package/es/modules/notification/components/NotificationProperties/index.js.map +1 -1
- package/package.json +1 -1
@@ -41,6 +41,8 @@ export declare class NotificationStore extends Store {
|
|
41
41
|
newLoadList(options?: LoadDocumentListOptions): Promise<INewNotification[]>;
|
42
42
|
/** Edit an existing item on server. */
|
43
43
|
edit(id: string, options: NotificationEditOptions): Promise<any>;
|
44
|
+
/** Edit an existing item on server. */
|
45
|
+
newEdit(id: string, options: NotificationEditOptions): Promise<any>;
|
44
46
|
/** send work.
|
45
47
|
* @param {string} id - id of the work.
|
46
48
|
*/
|
@@ -123,6 +123,15 @@ export class NotificationStore extends Store {
|
|
123
123
|
}
|
124
124
|
/** Edit an existing item on server. */
|
125
125
|
async edit(id, options) {
|
126
|
+
return this.action(async () => {
|
127
|
+
const r = await this.endpoint.post(`/api/myspace/notifications/${id}`, new RequestBuilder().json(options.data));
|
128
|
+
const t = (await r.json());
|
129
|
+
this.items.overwrite(t.id, t);
|
130
|
+
return t;
|
131
|
+
}, options);
|
132
|
+
}
|
133
|
+
/** Edit an existing item on server. */
|
134
|
+
async newEdit(id, options) {
|
126
135
|
return this.action(async () => {
|
127
136
|
const r = await this.endpoint.post(`/api/notifications/${id}`, new RequestBuilder().json(options.data));
|
128
137
|
const t = (await r.json());
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NotificationStore.js","sourceRoot":"","sources":["../../../src/data/notification/NotificationStore.ts"],"names":[],"mappings":";AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,qBAAqB,EAAsB,MAAM,qBAAqB,CAAC;AAWnG,OAAO,EAAE,eAAe,EAAE,MA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O,CAAC;QAChB,CAAC,EAAE,OAAQ,CAAC,CAAC;IACd,CAAC;CACD;AAjBa;IADZ,MAAM;+CAiBN;AAGF,+CAA+C;AAC/C,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,EAAE;IACxC,MAAM,OAAO,GAAG,qBAAqB,EAAE,CAAC;IACxC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;QACpC,OAAO,CAAC,eAAe,CAAC,IAAI,iBAAiB,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC;IAC7E,CAAC;IACD,OAAO,OAAO,CAAC,UAAU,CAAC,SAAS,CAAuB,CAAC;AAC5D,CAAC,CAAC"}
|
@@ -28,11 +28,11 @@ const NotificationProperties = (props) => {
|
|
28
28
|
function renderProp(item) {
|
29
29
|
switch (item.name) {
|
30
30
|
case "Subject":
|
31
|
-
return (React.createElement(InlineEdit, { defaultValue: notification.subject, content: (v) => notification.subject ? (React.createElement("span", { className: "properties-value" }, notification.subject)) : (React.createElement("span", { className: "add-info-style" }, "Add Number")), onSave: (value) => store.
|
31
|
+
return (React.createElement(InlineEdit, { defaultValue: notification.subject, content: (v) => notification.subject ? (React.createElement("span", { className: "properties-value" }, notification.subject)) : (React.createElement("span", { className: "add-info-style" }, "Add Number")), onSave: (value) => store.newEdit(id, { data: { Subject: value }, error: "message" }) }));
|
32
32
|
case "Channels":
|
33
33
|
return (React.createElement(InlineEdit, { defaultValue: notification.channels, editor: (v) => (React.createElement(Radio.Group, { onChange: (e) => {
|
34
34
|
v.store.value = e.target.value;
|
35
|
-
store.
|
35
|
+
store.newEdit(id, { data: { Channels: e.target.value }, error: "message" });
|
36
36
|
v.store.cancel();
|
37
37
|
}, value: notification.channels },
|
38
38
|
React.createElement(Radio, { value: "Email" }, "Email"),
|
@@ -41,7 +41,7 @@ const NotificationProperties = (props) => {
|
|
41
41
|
return (React.createElement(InlineEdit, { defaultValue: notification.date ? dayjs(notification.date) : undefined, content: (v) => notification.date ? (React.createElement("span", { className: "properties-value" }, dayjs(notification.date).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, "Add Date")), editor: DateInputEditor, onSave: (date) => {
|
42
42
|
if (notification.date && dayjs(date).isSame(notification.date, "day"))
|
43
43
|
return;
|
44
|
-
store.
|
44
|
+
store.newEdit(id, {
|
45
45
|
data: { Date: date !== null ? date : "" },
|
46
46
|
});
|
47
47
|
} }));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACvF,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAC/D,OAAO,uBAAuB,MAAM,wCAAwC,CAAC;AAC7E,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,sBAAsB,GAAG,CAAC,KAK/B,EAAE,EAAE;IACJ,yCAAyC;IACzC,MAAM,OAAO,GAAG,yBAAyB,CAAC;IAE1C,MAAM,EAAE,EAAE,EAAE,aAAa,EAAE,iBAAiB,EAAE,sBAAsB,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E,CAAC;YACnB,KAAK,SAAS;gBACb,OAAO,CACN,oBAAC,UAAU,IACV,YAAY,EAAE,YAAY,CAAC,OAAO,EAClC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CACd,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,CACtB,8BAAM,SAAS,EAAC,kBAAkB,IAAE,YAAY,CAAC,OAAO,CAAQ,CAChE,CAAC,CAAC,CAAC,CACH,8BAAM,SAAS,EAAC,gBAAgB,iBAAkB,CAClD,EAEF,MAAM,EAAE,CAAC,KAAU,EAAE,EAAE,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACvF,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAC/D,OAAO,uBAAuB,MAAM,wCAAwC,CAAC;AAC7E,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,sBAAsB,GAAG,CAAC,KAK/B,EAAE,EAAE;IACJ,yCAAyC;IACzC,MAAM,OAAO,GAAG,yBAAyB,CAAC;IAE1C,MAAM,EAAE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