@things-factory/lite-menu 5.0.0-alpha.45 → 5.0.0-alpha.48
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/client/pages/addon-menu-setting.js +12 -12
- package/package.json +19 -19
|
@@ -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.
|
|
3
|
+
"version": "5.0.0-alpha.48",
|
|
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.
|
|
28
|
-
"@operato/graphql": "1.0.0-beta.
|
|
29
|
-
"@operato/i18n": "1.0.0-beta.
|
|
30
|
-
"@operato/input": "1.0.0-beta.
|
|
31
|
-
"@operato/layout": "1.0.0-beta.
|
|
32
|
-
"@operato/popup": "1.0.0-beta.
|
|
33
|
-
"@operato/shell": "1.0.0-beta.
|
|
34
|
-
"@operato/styles": "1.0.0-beta.
|
|
35
|
-
"@operato/utils": "1.0.0-beta.
|
|
36
|
-
"@things-factory/apptool-base": "^5.0.0-alpha.
|
|
37
|
-
"@things-factory/auth-base": "^5.0.0-alpha.
|
|
38
|
-
"@things-factory/board-service": "^5.0.0-alpha.
|
|
39
|
-
"@things-factory/board-ui": "^5.0.0-alpha.
|
|
40
|
-
"@things-factory/grist-ui": "^5.0.0-alpha.
|
|
41
|
-
"@things-factory/more-base": "^5.0.0-alpha.
|
|
42
|
-
"@things-factory/setting-base": "^5.0.0-alpha.
|
|
43
|
-
"@things-factory/utils": "^5.0.0-alpha.
|
|
27
|
+
"@operato/data-grist": "1.0.0-beta.18",
|
|
28
|
+
"@operato/graphql": "1.0.0-beta.18",
|
|
29
|
+
"@operato/i18n": "1.0.0-beta.18",
|
|
30
|
+
"@operato/input": "1.0.0-beta.18",
|
|
31
|
+
"@operato/layout": "1.0.0-beta.18",
|
|
32
|
+
"@operato/popup": "1.0.0-beta.18",
|
|
33
|
+
"@operato/shell": "1.0.0-beta.18",
|
|
34
|
+
"@operato/styles": "1.0.0-beta.18",
|
|
35
|
+
"@operato/utils": "1.0.0-beta.18",
|
|
36
|
+
"@things-factory/apptool-base": "^5.0.0-alpha.48",
|
|
37
|
+
"@things-factory/auth-base": "^5.0.0-alpha.48",
|
|
38
|
+
"@things-factory/board-service": "^5.0.0-alpha.48",
|
|
39
|
+
"@things-factory/board-ui": "^5.0.0-alpha.48",
|
|
40
|
+
"@things-factory/grist-ui": "^5.0.0-alpha.48",
|
|
41
|
+
"@things-factory/more-base": "^5.0.0-alpha.48",
|
|
42
|
+
"@things-factory/setting-base": "^5.0.0-alpha.48",
|
|
43
|
+
"@things-factory/utils": "^5.0.0-alpha.48"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "0fa9b26abce176fa96d820fb50cc5565760d50c9"
|
|
46
46
|
}
|