@cocreate/organizations 1.23.5 → 1.24.0
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/CHANGELOG.md +12 -0
- package/package.json +5 -5
- package/src/client.js +7 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# [1.24.0](https://github.com/CoCreate-app/CoCreate-organizations/compare/v1.23.5...v1.24.0) (2023-11-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* use action.form ([1529f6b](https://github.com/CoCreate-app/CoCreate-organizations/commit/1529f6b31ad1ecdfe38b268ee9f233f7ce1558a8))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* update dependecies for th latest features and bug fixes ([96ffad6](https://github.com/CoCreate-app/CoCreate-organizations/commit/96ffad623c9911a41cee06ff88713aa3d8ba73b6))
|
|
12
|
+
|
|
1
13
|
## [1.23.5](https://github.com/CoCreate-app/CoCreate-organizations/compare/v1.23.4...v1.23.5) (2023-11-12)
|
|
2
14
|
|
|
3
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/organizations",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.24.0",
|
|
4
4
|
"description": "A simple organizations component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"organizations",
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"webpack-log": "^3.0.1"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@cocreate/actions": "^1.12.
|
|
62
|
-
"@cocreate/config": "^1.6.
|
|
63
|
-
"@cocreate/crud-client": "^1.
|
|
64
|
-
"@cocreate/elements": "^1.26.
|
|
61
|
+
"@cocreate/actions": "^1.12.4",
|
|
62
|
+
"@cocreate/config": "^1.6.9",
|
|
63
|
+
"@cocreate/crud-client": "^1.29.0",
|
|
64
|
+
"@cocreate/elements": "^1.26.4"
|
|
65
65
|
}
|
|
66
66
|
}
|
package/src/client.js
CHANGED
|
@@ -188,12 +188,11 @@ async function createOrganization() {
|
|
|
188
188
|
return organizationPromise || (organizationPromise = createOrganizationPromise());
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
async function create(
|
|
192
|
-
|
|
193
|
-
if (!formEl) return;
|
|
191
|
+
async function create(form) {
|
|
192
|
+
if (!form) return;
|
|
194
193
|
|
|
195
|
-
let organization = Elements.getData(
|
|
196
|
-
let user = Elements.getData(
|
|
194
|
+
let organization = Elements.getData(form, 'organizations')
|
|
195
|
+
let user = Elements.getData(form, 'users')
|
|
197
196
|
|
|
198
197
|
if (!organization || !organization.object)
|
|
199
198
|
return
|
|
@@ -206,8 +205,8 @@ async function create(btn) {
|
|
|
206
205
|
return
|
|
207
206
|
}
|
|
208
207
|
|
|
209
|
-
Elements.setTypeValue(
|
|
210
|
-
Elements.setTypeValue(
|
|
208
|
+
Elements.setTypeValue(form, organization)
|
|
209
|
+
Elements.setTypeValue(form, user)
|
|
211
210
|
|
|
212
211
|
organization = organization.object[0]
|
|
213
212
|
user = user.object[0]
|
|
@@ -236,7 +235,7 @@ Action.init({
|
|
|
236
235
|
name: "createOrganization",
|
|
237
236
|
endEvent: "createdOrganization",
|
|
238
237
|
callback: (action) => {
|
|
239
|
-
create(action.
|
|
238
|
+
create(action.form);
|
|
240
239
|
}
|
|
241
240
|
});
|
|
242
241
|
|