utopia-ui 3.0.15 → 3.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -4115,9 +4115,11 @@ function ItemFormPopup(props) {
|
|
4115
4115
|
return [3 /*break*/, 12];
|
4116
4116
|
case 12:
|
4117
4117
|
if (success) {
|
4118
|
-
props.layer.onlyOnePerOwner && item
|
4119
|
-
|
4118
|
+
if (props.layer.onlyOnePerOwner && item)
|
4119
|
+
updateItem(__assign(__assign({}, item), formItem));
|
4120
|
+
if (!props.layer.onlyOnePerOwner || !item) {
|
4120
4121
|
addItem(__assign(__assign({}, formItem), { name: formItem.name ? formItem.name : user === null || user === void 0 ? void 0 : user.first_name, user_created: user, type: props.layer.itemType, id: uuid, layer: props.layer, public_edit: !user }));
|
4122
|
+
}
|
4121
4123
|
toast.success('New item created');
|
4122
4124
|
resetFilterTags();
|
4123
4125
|
}
|
@@ -4928,7 +4930,9 @@ var SocialShareBar = function (_a) {
|
|
4928
4930
|
|
4929
4931
|
var GroupSubHeaderView = function (_a) {
|
4930
4932
|
var item = _a.item, shareBaseUrl = _a.shareBaseUrl;
|
4931
|
-
return (jsxs("div", __assign({ className: 'tw-px-6' }, { children: [jsxs("div", __assign({ className: 'tw-float-left tw-mt-2 tw-mb-4 tw-flex tw-items-center' }, { children: [item.status && (jsx("div", __assign({ className: 'tw-mt-1.5' }, { children: jsx("span", __assign({ className: 'tw-text-sm tw-text-current tw-bg-base-300 tw-rounded tw-py-0.5 tw-px-2 tw-inline-flex tw-items-center tw-mr-2' }, { children: item.status })) }))), item.group_type && (jsx("div", __assign({ className: 'tw-mt-1.5' }, { children: jsx("span", __assign({ className: 'tw-text-sm tw-text-current tw-bg-base-300 tw-rounded tw-py-1 tw-px-2' }, { children: item.group_type })) })))] })), jsx("div", { children: jsx(SocialShareBar, { url: shareBaseUrl
|
4933
|
+
return (jsxs("div", __assign({ className: 'tw-px-6' }, { children: [jsxs("div", __assign({ className: 'tw-float-left tw-mt-2 tw-mb-4 tw-flex tw-items-center' }, { children: [item.status && (jsx("div", __assign({ className: 'tw-mt-1.5' }, { children: jsx("span", __assign({ className: 'tw-text-sm tw-text-current tw-bg-base-300 tw-rounded tw-py-0.5 tw-px-2 tw-inline-flex tw-items-center tw-mr-2' }, { children: item.status })) }))), item.group_type && (jsx("div", __assign({ className: 'tw-mt-1.5' }, { children: jsx("span", __assign({ className: 'tw-text-sm tw-text-current tw-bg-base-300 tw-rounded tw-py-1 tw-px-2' }, { children: item.group_type })) })))] })), jsx("div", { children: jsx(SocialShareBar, { url: shareBaseUrl && item.slug
|
4934
|
+
? shareBaseUrl + item.slug
|
4935
|
+
: window.location.protocol + '//' + window.location.host + '/item/' + item.id, title: item.name }) })] })));
|
4932
4936
|
};
|
4933
4937
|
|
4934
4938
|
var OnepagerView = function (_a) {
|