@things-factory/lite-menu 5.0.0-alpha.46 → 5.0.0-alpha.49

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.
@@ -16,6 +16,8 @@ import { PageView, store } from '@operato/shell'
16
16
  import { CommonButtonStyles, CommonGristStyles } from '@operato/styles'
17
17
  import { isMobileDevice } from '@operato/utils'
18
18
 
19
+ import { fetchAddonMenus } from '../actions/lite-menu'
20
+
19
21
  const applicationName = document.querySelector('meta[name="application-name"]')?.content
20
22
 
21
23
  class AddonMenuSetting extends connect(store)(localize(i18next)(PageView)) {
@@ -202,6 +204,7 @@ class AddonMenuSetting extends connect(store)(localize(i18next)(PageView)) {
202
204
  )
203
205
 
204
206
  grist.fetch()
207
+ fetchAddonMenus() /* update menu-system */
205
208
  }
206
209
 
207
210
  onReload() {
@@ -231,6 +234,7 @@ class AddonMenuSetting extends connect(store)(localize(i18next)(PageView)) {
231
234
  )
232
235
 
233
236
  grist.fetch()
237
+ fetchAddonMenus() /* update menu-system */
234
238
  }
235
239
 
236
240
  async pageInitialized() {
@@ -433,12 +437,6 @@ class AddonMenuSetting extends connect(store)(localize(i18next)(PageView)) {
433
437
  }
434
438
 
435
439
  async fetchHandler({ filters = [], page, limit, sortings = [] }) {
436
- filters.push({
437
- name: 'appName',
438
- operator: 'in',
439
- value: ['', applicationName]
440
- })
441
-
442
440
  const response = (
443
441
  await client.query({
444
442
  query: gql`
@@ -477,18 +475,20 @@ class AddonMenuSetting extends connect(store)(localize(i18next)(PageView)) {
477
475
  }
478
476
  `,
479
477
  variables: {
480
- filters,
478
+ filters: [
479
+ ...filters,
480
+ {
481
+ name: 'appName',
482
+ operator: 'in',
483
+ value: ['', applicationName]
484
+ }
485
+ ],
481
486
  pagination: { page, limit },
482
487
  sortings
483
488
  }
484
489
  })
485
490
  ).data.responses
486
491
 
487
- store.dispatch({
488
- type: 'UPDATE_ADDON_MENUS',
489
- addon: response.items
490
- })
491
-
492
492
  return {
493
493
  records: response.items,
494
494
  total: response.total
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/lite-menu",
3
- "version": "5.0.0-alpha.46",
3
+ "version": "5.0.0-alpha.49",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -24,23 +24,23 @@
24
24
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
25
25
  },
26
26
  "dependencies": {
27
- "@operato/data-grist": "1.0.0-beta.16",
28
- "@operato/graphql": "1.0.0-beta.16",
29
- "@operato/i18n": "1.0.0-beta.16",
30
- "@operato/input": "1.0.0-beta.16",
31
- "@operato/layout": "1.0.0-beta.16",
32
- "@operato/popup": "1.0.0-beta.16",
33
- "@operato/shell": "1.0.0-beta.16",
34
- "@operato/styles": "1.0.0-beta.16",
35
- "@operato/utils": "1.0.0-beta.16",
36
- "@things-factory/apptool-base": "^5.0.0-alpha.46",
37
- "@things-factory/auth-base": "^5.0.0-alpha.46",
38
- "@things-factory/board-service": "^5.0.0-alpha.46",
39
- "@things-factory/board-ui": "^5.0.0-alpha.46",
40
- "@things-factory/grist-ui": "^5.0.0-alpha.46",
41
- "@things-factory/more-base": "^5.0.0-alpha.46",
42
- "@things-factory/setting-base": "^5.0.0-alpha.46",
43
- "@things-factory/utils": "^5.0.0-alpha.46"
27
+ "@operato/data-grist": "1.0.0-beta.19",
28
+ "@operato/graphql": "1.0.0-beta.19",
29
+ "@operato/i18n": "1.0.0-beta.19",
30
+ "@operato/input": "1.0.0-beta.19",
31
+ "@operato/layout": "1.0.0-beta.19",
32
+ "@operato/popup": "1.0.0-beta.19",
33
+ "@operato/shell": "1.0.0-beta.19",
34
+ "@operato/styles": "1.0.0-beta.19",
35
+ "@operato/utils": "1.0.0-beta.19",
36
+ "@things-factory/apptool-base": "^5.0.0-alpha.49",
37
+ "@things-factory/auth-base": "^5.0.0-alpha.49",
38
+ "@things-factory/board-service": "^5.0.0-alpha.49",
39
+ "@things-factory/board-ui": "^5.0.0-alpha.49",
40
+ "@things-factory/grist-ui": "^5.0.0-alpha.49",
41
+ "@things-factory/more-base": "^5.0.0-alpha.49",
42
+ "@things-factory/setting-base": "^5.0.0-alpha.49",
43
+ "@things-factory/utils": "^5.0.0-alpha.49"
44
44
  },
45
- "gitHead": "caf4c2783d94a5a4787196341555635a86df907f"
45
+ "gitHead": "87ecb0139f9b924386ad66e0bc612ff3238f12a2"
46
46
  }