@things-factory/board-ui 6.1.1 → 6.1.2

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.
@@ -65,7 +65,7 @@ export class BoardModellerPage extends connect(store)(PageView) {
65
65
  componentGroupList: Array,
66
66
  fonts: Array,
67
67
  propertyEditor: Array,
68
- _showSpinner: Boolean
68
+ preparing: Boolean
69
69
  }
70
70
  }
71
71
 
@@ -84,18 +84,6 @@ export class BoardModellerPage extends connect(store)(PageView) {
84
84
  flex: 1;
85
85
  }
86
86
 
87
- oops-spinner {
88
- display: none;
89
- position: absolute;
90
- left: 50%;
91
- top: 50%;
92
- transform: translate(-50%, -50%);
93
- }
94
-
95
- oops-spinner[show] {
96
- display: block;
97
- }
98
-
99
87
  oops-note {
100
88
  display: block;
101
89
  position: absolute;
@@ -109,7 +97,7 @@ export class BoardModellerPage extends connect(store)(PageView) {
109
97
 
110
98
  get context() {
111
99
  return {
112
- title: this.board ? this.boardName : this._showSpinner ? 'Fetching board...' : 'Board Not Found',
100
+ title: this.board ? this.boardName : this.preparing ? 'Fetching board...' : 'Board Not Found',
113
101
  help: 'board-modeller/modeller',
114
102
  widebleed: true
115
103
  }
@@ -135,7 +123,7 @@ export class BoardModellerPage extends connect(store)(PageView) {
135
123
  return
136
124
  }
137
125
  try {
138
- this._showSpinner = true
126
+ this.preparing = true
139
127
  this.updateContext()
140
128
 
141
129
  var response = await client.query({
@@ -179,7 +167,7 @@ export class BoardModellerPage extends connect(store)(PageView) {
179
167
  })
180
168
  )
181
169
  } finally {
182
- this._showSpinner = false
170
+ this.preparing = false
183
171
  this.updateContext()
184
172
  }
185
173
  }
@@ -206,7 +194,7 @@ export class BoardModellerPage extends connect(store)(PageView) {
206
194
  }
207
195
 
208
196
  render() {
209
- var oops = !this._showSpinner && !this.model && this.oopsNote
197
+ var oops = !this.preparing && !this.model && this.oopsNote
210
198
 
211
199
  return oops
212
200
  ? html`
@@ -243,13 +231,12 @@ export class BoardModellerPage extends connect(store)(PageView) {
243
231
  .hideProperty=${this.hideProperty}
244
232
  >
245
233
  </ox-board-modeller>
246
- <oops-spinner ?show=${this._showSpinner}></oops-spinner>
247
234
  `
248
235
  }
249
236
 
250
237
  async updateBoard() {
251
238
  try {
252
- this._showSpinner = true
239
+ this.preparing = true
253
240
 
254
241
  var { id, name, description, groupId } = this.board
255
242
  var model = JSON.stringify(this.scene.model)
@@ -288,7 +275,7 @@ export class BoardModellerPage extends connect(store)(PageView) {
288
275
  })
289
276
  )
290
277
  } finally {
291
- this._showSpinner = false
278
+ this.preparing = false
292
279
  }
293
280
 
294
281
  this.updateContext()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/board-ui",
3
- "version": "6.1.1",
3
+ "version": "6.1.2",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -42,9 +42,9 @@
42
42
  "@polymer/paper-listbox": "^3.0.1",
43
43
  "@polymer/paper-menu-button": "^3.0.1",
44
44
  "@polymer/paper-slider": "^3.0.1",
45
- "@things-factory/barcode-base": "^6.1.1",
45
+ "@things-factory/barcode-base": "^6.1.2",
46
46
  "file-saver": "^2.0.2",
47
47
  "sortablejs": "^1.10.2"
48
48
  },
49
- "gitHead": "6db355e12ac7580863fe1a0f4b6d6258b2cadead"
49
+ "gitHead": "f237e856ae21fc8c09b7bbbcc4f50282c7e7856d"
50
50
  }