@things-factory/operato-board 6.0.101 → 6.0.105

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.
@@ -37,8 +37,20 @@ export default function bootstrap() {
37
37
 
38
38
  /* set auth management menus into more-panel */
39
39
  auth.on('profile', async ({ credential }) => {
40
- console.log('on profile', credential)
41
40
  setAuthManagementMenus(credential)
41
+
42
+ if (credential.owner) {
43
+ store.dispatch({
44
+ type: ADD_MORENDA,
45
+ morenda: {
46
+ icon: html` <mwc-icon>vpn_key</mwc-icon> `,
47
+ name: html` <ox-i18n msgid="text.oauth2-clients"></ox-i18n> `,
48
+ action: () => {
49
+ navigate('oauth2-clients')
50
+ }
51
+ }
52
+ })
53
+ }
42
54
  })
43
55
 
44
56
  /* append viewpart anchor to asidebar */
@@ -52,17 +64,6 @@ export default function bootstrap() {
52
64
  position: VIEWPART_POSITION.ASIDEBAR
53
65
  })
54
66
 
55
- store.dispatch({
56
- type: ADD_MORENDA,
57
- morenda: {
58
- icon: html` <mwc-icon>vpn_key</mwc-icon> `,
59
- name: html` <ox-i18n msgid="text.oauth2-clients"></ox-i18n> `,
60
- action: () => {
61
- navigate('oauth2-clients')
62
- }
63
- }
64
- })
65
-
66
67
  store.dispatch({
67
68
  type: ADD_MORENDA,
68
69
  morenda: {
@@ -13,5 +13,27 @@ module.exports = {
13
13
  https://github.com/node-fetch/node-fetch/issues/1624
14
14
  */
15
15
  endpoint: 'http://127.0.0.1:9902'
16
+ },
17
+ ormconfig: {
18
+ name: 'default',
19
+ type: 'postgres',
20
+ host: '127.0.0.1',
21
+ port: 5432,
22
+ database: 'vis_app',
23
+ username: 'postgres',
24
+ password: 'hatioLAB1008',
25
+ synchronize: true,
26
+ logging: true
27
+ },
28
+ ormconfig4Tx: {
29
+ name: 'default',
30
+ type: 'postgres',
31
+ host: '127.0.0.1',
32
+ port: 5432,
33
+ database: 'vis_app',
34
+ username: 'postgres',
35
+ password: 'hatioLAB1008',
36
+ synchronize: false,
37
+ logging: true
16
38
  }
17
39
  }