@operato/board 8.0.0-alpha.41 → 8.0.0-alpha.43

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@operato/board",
3
- "version": "8.0.0-alpha.41",
3
+ "version": "8.0.0-alpha.43",
4
4
  "description": "Webcomponent for board following open-wc recommendations",
5
5
  "author": "heartyoh",
6
6
  "main": "dist/src/index.js",
@@ -159,5 +159,5 @@
159
159
  "prettier --write"
160
160
  ]
161
161
  },
162
- "gitHead": "0c2adcc994cd105055c9355810fa9c7c8196ca41"
162
+ "gitHead": "af52699d89b5d4185de1a1546e0b06f912a3c14d"
163
163
  }
@@ -125,6 +125,7 @@ export class BoardViewer extends LitElement {
125
125
  @property({ type: Object }) provider: ReferenceProvider | null = null
126
126
  @property({ type: Object }) data: any
127
127
  @property({ type: Object }) values: any
128
+ @property({ type: Boolean }) history: boolean = false
128
129
 
129
130
  @property({ type: Boolean, reflect: true, attribute: 'hide-fullscreen' }) hideFullscreen = false
130
131
  @property({ type: Boolean, reflect: true, attribute: 'hide-navigation' }) hideNavigation = false
@@ -333,7 +334,7 @@ export class BoardViewer extends LitElement {
333
334
 
334
335
  this.transientShowButtons()
335
336
 
336
- if (typeof history !== 'undefined' /* && document.querySelector('things-app') */) {
337
+ if (this.history && typeof history !== 'undefined' /* && document.querySelector('things-app') */) {
337
338
  const currentUrl = new URL(window.location.href)
338
339
  const paths = currentUrl.pathname.split('/')
339
340