@things-factory/reference-app 4.1.6 → 4.1.10

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.6",
3
+ "version": "4.1.10",
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.6",
64
- "@things-factory/apptool-ui": "^4.1.6",
65
- "@things-factory/auth-ui": "^4.1.6",
66
- "@things-factory/board-service": "^4.1.6",
67
- "@things-factory/board-ui": "^4.1.6",
68
- "@things-factory/context-ui": "^4.1.6",
69
- "@things-factory/dashboard": "^4.1.6",
70
- "@things-factory/export-ui": "^4.1.6",
71
- "@things-factory/export-ui-excel": "^4.1.6",
72
- "@things-factory/grist-ui": "^4.1.6",
73
- "@things-factory/help": "^4.1.6",
74
- "@things-factory/integration-ui": "^4.1.6",
75
- "@things-factory/lite-menu": "^4.1.6",
76
- "@things-factory/more-ui": "^4.1.6",
77
- "@things-factory/notification": "^4.1.6",
78
- "@things-factory/oauth2-client": "^4.1.6",
79
- "@things-factory/print-ui": "^4.1.6",
80
- "@things-factory/resource-ui": "^4.1.6",
81
- "@things-factory/scene-form": "^4.1.6",
82
- "@things-factory/scene-news-ticker": "^4.1.6",
83
- "@things-factory/setting-base": "^4.1.6",
84
- "@things-factory/setting-ui": "^4.1.6",
85
- "@things-factory/shell": "^4.1.6",
86
- "@things-factory/system-ui": "^4.1.6"
64
+ "@things-factory/api": "^4.1.10",
65
+ "@things-factory/apptool-ui": "^4.1.10",
66
+ "@things-factory/auth-ui": "^4.1.10",
67
+ "@things-factory/board-service": "^4.1.10",
68
+ "@things-factory/board-ui": "^4.1.10",
69
+ "@things-factory/context-ui": "^4.1.10",
70
+ "@things-factory/dashboard": "^4.1.10",
71
+ "@things-factory/export-ui": "^4.1.10",
72
+ "@things-factory/export-ui-excel": "^4.1.10",
73
+ "@things-factory/grist-ui": "^4.1.10",
74
+ "@things-factory/help": "^4.1.10",
75
+ "@things-factory/integration-ui": "^4.1.10",
76
+ "@things-factory/lite-menu": "^4.1.10",
77
+ "@things-factory/more-ui": "^4.1.10",
78
+ "@things-factory/notification": "^4.1.10",
79
+ "@things-factory/oauth2-client": "^4.1.10",
80
+ "@things-factory/print-ui": "^4.1.10",
81
+ "@things-factory/resource-ui": "^4.1.10",
82
+ "@things-factory/scene-form": "^4.1.10",
83
+ "@things-factory/setting-base": "^4.1.10",
84
+ "@things-factory/setting-ui": "^4.1.10",
85
+ "@things-factory/shell": "^4.1.10",
86
+ "@things-factory/system-ui": "^4.1.10"
87
87
  },
88
88
  "devDependencies": {
89
- "@things-factory/builder": "^4.1.6"
89
+ "@things-factory/builder": "^4.1.10"
90
90
  },
91
- "gitHead": "3b0bbe1cd54f9585579fb85c64cce3338b45fa30"
91
+ "gitHead": "8047bbb36aabdd33156b3fd91a4a5a874bed3754"
92
92
  }