@things-factory/reference-app 6.2.48 → 6.2.50
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/bootstrap.js +15 -4
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +33 -33
package/client/bootstrap.js
CHANGED
|
@@ -8,6 +8,7 @@ import '@operato/dataset/usecase/qc'
|
|
|
8
8
|
import '@operato/dataset/ox-property-editor-ccp-limits.js'
|
|
9
9
|
import '@operato/dataset/ox-property-editor-qc-limits.js'
|
|
10
10
|
import '@operato/i18n/ox-i18n.js'
|
|
11
|
+
import '@things-factory/setting-ui' /* secure-iplist-setting-let */
|
|
11
12
|
|
|
12
13
|
import { html } from 'lit-html'
|
|
13
14
|
|
|
@@ -124,7 +125,7 @@ export default async function bootstrap() {
|
|
|
124
125
|
/* set auth management menus into more-panel */
|
|
125
126
|
setAuthManagementMenus()
|
|
126
127
|
|
|
127
|
-
if (await hasPrivilege({ name: 'mutation', category: 'user'
|
|
128
|
+
if (await hasPrivilege({ name: 'mutation', category: 'user' })) {
|
|
128
129
|
store.dispatch({
|
|
129
130
|
type: ADD_MORENDA,
|
|
130
131
|
morenda: {
|
|
@@ -137,7 +138,7 @@ export default async function bootstrap() {
|
|
|
137
138
|
})
|
|
138
139
|
}
|
|
139
140
|
|
|
140
|
-
if (await hasPrivilege({ name: 'mutation', category: 'board'
|
|
141
|
+
if (await hasPrivilege({ name: 'mutation', category: 'board' })) {
|
|
141
142
|
store.dispatch({
|
|
142
143
|
type: ADD_MORENDA,
|
|
143
144
|
morenda: {
|
|
@@ -183,7 +184,7 @@ export default async function bootstrap() {
|
|
|
183
184
|
})
|
|
184
185
|
}
|
|
185
186
|
|
|
186
|
-
if (await hasPrivilege({ name: 'mutation', category: 'scenario'
|
|
187
|
+
if (await hasPrivilege({ name: 'mutation', category: 'scenario' })) {
|
|
187
188
|
store.dispatch({
|
|
188
189
|
type: ADD_MORENDA,
|
|
189
190
|
morenda: {
|
|
@@ -218,7 +219,7 @@ export default async function bootstrap() {
|
|
|
218
219
|
})
|
|
219
220
|
}
|
|
220
221
|
|
|
221
|
-
if (await hasPrivilege({ name: 'mutation', category: 'state-register'
|
|
222
|
+
if (await hasPrivilege({ name: 'mutation', category: 'state-register' })) {
|
|
222
223
|
store.dispatch({
|
|
223
224
|
type: ADD_MORENDA,
|
|
224
225
|
morenda: {
|
|
@@ -359,4 +360,14 @@ export default async function bootstrap() {
|
|
|
359
360
|
template: html` <notification-setting-let></notification-setting-let> `
|
|
360
361
|
}
|
|
361
362
|
})
|
|
363
|
+
|
|
364
|
+
if (await hasPrivilege({ name: 'mutation', category: 'security' })) {
|
|
365
|
+
store.dispatch({
|
|
366
|
+
type: ADD_SETTING,
|
|
367
|
+
setting: {
|
|
368
|
+
seq: 31,
|
|
369
|
+
template: html` <secure-iplist-setting-let></secure-iplist-setting-let> `
|
|
370
|
+
}
|
|
371
|
+
})
|
|
372
|
+
}
|
|
362
373
|
}
|