@things-factory/board-ui 7.0.44 → 7.0.47

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.
@@ -1,6 +1,6 @@
1
1
  import '@operato/i18n/ox-i18n.js'
2
2
 
3
- import { css, html, LitElement, PropertyValues } from 'lit'
3
+ import { css, html, LitElement, nothing } from 'lit'
4
4
  import { customElement, property, state } from 'lit/decorators.js'
5
5
 
6
6
  import { ScrollbarStyles } from '@operato/styles'
@@ -94,9 +94,11 @@ export class BoardTemplateBuilder extends LitElement {
94
94
  placeholder="choose visibility ..."
95
95
  .value=${this.visibility}
96
96
  >
97
- <option value="private">private</option>
98
- <option value="domain">domain</option>
99
- <option value="public">public</option>
97
+ <option value="private">${i18next.t('label.visibility-private')}</option>
98
+ ${window.location.pathname.startsWith('/domain/')
99
+ ? html` <option value="domain">${i18next.t('label.visibility-domain')}</option> `
100
+ : nothing}
101
+ <option value="public">${i18next.t('label.visibility-public')}</option>
100
102
  </select>
101
103
 
102
104
  <button @click=${this.registerBoardAsTemplate}>${i18next.t('text.register-template')}</button>