@cocreate/users 1.5.1 → 1.5.2

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 CHANGED
@@ -1,3 +1,11 @@
1
+ ## [1.5.2](https://github.com/CoCreate-app/CoCreate-users/compare/v1.5.1...v1.5.2) (2022-05-03)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * removed localstorage.setItem for admin_ui and builder_ui ([350f289](https://github.com/CoCreate-app/CoCreate-users/commit/350f289f731bf21f535d892b276708044eb662a3))
7
+ * user permission typo contained duplicate delete switch case. renamed one to update ([66f6fc7](https://github.com/CoCreate-app/CoCreate-users/commit/66f6fc72ce3b60facaaa41112246de22358062dd))
8
+
1
9
  ## [1.5.1](https://github.com/CoCreate-app/CoCreate-users/compare/v1.5.0...v1.5.1) (2022-03-06)
2
10
 
3
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/users",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "A simple users component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "users",
package/src/client.js CHANGED
@@ -120,8 +120,8 @@ const CoCreateUser = {
120
120
  window.localStorage.setItem('organization_id', data['current_org']);
121
121
  window.localStorage.setItem('host', window.config.host);
122
122
 
123
- window.localStorage.setItem('adminUI_id', data['adminUI_id']);
124
- window.localStorage.setItem('builderUI_id', data['builderUI_id']);
123
+ // window.localStorage.setItem('adminUI_id', data['adminUI_id']);
124
+ // window.localStorage.setItem('builderUI_id', data['builderUI_id']);
125
125
 
126
126
  document.dispatchEvent(new CustomEvent('logIn'));
127
127
  },
@@ -214,7 +214,7 @@ const CoCreateUser = {
214
214
  case 'read':
215
215
  tag.style.display = 'none';
216
216
  break;
217
- case 'delete':
217
+ case 'update':
218
218
  tag.style.display = 'none';
219
219
  break;
220
220
  case 'delete':