@things-factory/reference-app 4.1.3 → 4.1.13

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,7 +37,7 @@ class ContextPage extends connect(store)(PageView) {
37
37
  get context() {
38
38
  return {
39
39
  title: this.title,
40
- actions: [this.action],
40
+ actions: this.actions,
41
41
  importable: this.importable && {
42
42
  handler: records => {
43
43
  openImportPopUp(
@@ -167,16 +167,17 @@ class ContextPage extends connect(store)(PageView) {
167
167
 
168
168
  updated(changes) {
169
169
  if (this.actionStyle) {
170
- this.action = {
171
- title: this.actionTitle || '',
172
- action: () => {
173
- alert(this.actionTitle || '')
174
- },
175
- ...CommonButtonStyles[this.actionStyle]
176
- }
177
- console.log('this.actionStyle')
170
+ this.actions = this.actionTitle.split(',').map(title => {
171
+ return {
172
+ title: title || '',
173
+ action: () => {
174
+ alert(title || '')
175
+ },
176
+ ...CommonButtonStyles[this.actionStyle]
177
+ }
178
+ })
178
179
  } else {
179
- this.action = null
180
+ this.actions = []
180
181
  }
181
182
 
182
183
  this.updateContext()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/reference-app",
3
- "version": "4.1.3",
3
+ "version": "4.1.13",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -49,44 +49,44 @@
49
49
  "@operato/ocr": "^0.3.28",
50
50
  "@operato/popup": "^0.3.28",
51
51
  "@operato/pull-to-refresh": "^0.3.28",
52
- "@operato/scene-chartjs": "^0.1.4",
53
- "@operato/scene-clock": "^0.1.4",
54
- "@operato/scene-gauge": "^0.1.4",
55
- "@operato/scene-half-roundrect": "^0.1.4",
56
- "@operato/scene-indoor-map": "^0.1.4",
57
- "@operato/scene-progressbar": "^0.1.4",
58
- "@operato/scene-random": "^0.1.4",
59
- "@operato/scene-switch": "^0.1.4",
60
- "@operato/scene-tab": "^0.1.4",
52
+ "@operato/scene-chartjs": "^0.1.5",
53
+ "@operato/scene-clock": "^0.1.5",
54
+ "@operato/scene-gauge": "^0.1.5",
55
+ "@operato/scene-half-roundrect": "^0.1.5",
56
+ "@operato/scene-indoor-map": "^0.1.5",
57
+ "@operato/scene-news-ticker": "^0.1.5",
58
+ "@operato/scene-progressbar": "^0.1.5",
59
+ "@operato/scene-random": "^0.1.5",
60
+ "@operato/scene-switch": "^0.1.5",
61
+ "@operato/scene-tab": "^0.1.5",
61
62
  "@operato/shell": "^0.3.28",
62
63
  "@operato/utils": "^0.3.28",
63
- "@things-factory/api": "^4.1.2",
64
- "@things-factory/apptool-ui": "^4.1.2",
65
- "@things-factory/auth-ui": "^4.1.2",
66
- "@things-factory/board-service": "^4.1.2",
67
- "@things-factory/board-ui": "^4.1.2",
68
- "@things-factory/context-ui": "^4.1.2",
69
- "@things-factory/dashboard": "^4.1.2",
70
- "@things-factory/export-ui": "^4.1.2",
71
- "@things-factory/export-ui-excel": "^4.1.2",
72
- "@things-factory/grist-ui": "^4.1.2",
73
- "@things-factory/help": "^4.1.2",
74
- "@things-factory/integration-ui": "^4.1.2",
75
- "@things-factory/lite-menu": "^4.1.2",
76
- "@things-factory/more-ui": "^4.1.2",
77
- "@things-factory/notification": "^4.1.2",
78
- "@things-factory/oauth2-client": "^4.1.2",
79
- "@things-factory/print-ui": "^4.1.2",
80
- "@things-factory/resource-ui": "^4.1.3",
81
- "@things-factory/scene-form": "^4.1.2",
82
- "@things-factory/scene-news-ticker": "^4.1.2",
83
- "@things-factory/setting-base": "^4.1.2",
84
- "@things-factory/setting-ui": "^4.1.3",
85
- "@things-factory/shell": "^4.1.2",
86
- "@things-factory/system-ui": "^4.1.2"
64
+ "@things-factory/api": "^4.1.13",
65
+ "@things-factory/apptool-ui": "^4.1.13",
66
+ "@things-factory/auth-ui": "^4.1.13",
67
+ "@things-factory/board-service": "^4.1.13",
68
+ "@things-factory/board-ui": "^4.1.13",
69
+ "@things-factory/context-ui": "^4.1.13",
70
+ "@things-factory/dashboard": "^4.1.13",
71
+ "@things-factory/export-ui": "^4.1.13",
72
+ "@things-factory/export-ui-excel": "^4.1.13",
73
+ "@things-factory/grist-ui": "^4.1.13",
74
+ "@things-factory/help": "^4.1.13",
75
+ "@things-factory/integration-ui": "^4.1.13",
76
+ "@things-factory/lite-menu": "^4.1.13",
77
+ "@things-factory/more-ui": "^4.1.13",
78
+ "@things-factory/notification": "^4.1.13",
79
+ "@things-factory/oauth2-client": "^4.1.13",
80
+ "@things-factory/print-ui": "^4.1.13",
81
+ "@things-factory/resource-ui": "^4.1.13",
82
+ "@things-factory/scene-form": "^4.1.13",
83
+ "@things-factory/setting-base": "^4.1.13",
84
+ "@things-factory/setting-ui": "^4.1.13",
85
+ "@things-factory/shell": "^4.1.13",
86
+ "@things-factory/system-ui": "^4.1.13"
87
87
  },
88
88
  "devDependencies": {
89
- "@things-factory/builder": "^4.1.2"
89
+ "@things-factory/builder": "^4.1.13"
90
90
  },
91
- "gitHead": "08102cf42a7bcb6bb9de90e64201ffa1a0ea6308"
91
+ "gitHead": "adbf93d0eddd05d209543ed0d08e3aeaab2968b5"
92
92
  }