diff --git a/dist/plex-meets-homeassistant.js b/dist/plex-meets-homeassistant.js index a1e46b6..364e12e 100644 --- a/dist/plex-meets-homeassistant.js +++ b/dist/plex-meets-homeassistant.js @@ -19601,15 +19601,15 @@ class PlexMeetsHomeAssistantEditor extends HTMLElement { this.ip.value = this.config.ip; this.ip.addEventListener('change', this.valueUpdated); this.content.appendChild(this.ip); - this.token.label = 'Plex Token'; - this.token.value = this.config.token; - this.token.addEventListener('change', this.valueUpdated); - this.content.appendChild(this.token); this.port.label = 'Plex Port'; this.port.value = this.config.port; this.port.type = 'number'; this.port.addEventListener('change', this.valueUpdated); this.content.appendChild(this.port); + this.token.label = 'Plex Token'; + this.token.value = this.config.token; + this.token.addEventListener('change', this.valueUpdated); + this.content.appendChild(this.token); this.libraryName.innerHTML = ''; const libraryItems = document.createElement('paper-listbox'); libraryItems.appendChild(addDropdownItem('Continue Watching')); diff --git a/src/editor.ts b/src/editor.ts index 6efef83..443a6ec 100644 --- a/src/editor.ts +++ b/src/editor.ts @@ -200,17 +200,17 @@ class PlexMeetsHomeAssistantEditor extends HTMLElement { this.ip.addEventListener('change', this.valueUpdated); this.content.appendChild(this.ip); - this.token.label = 'Plex Token'; - this.token.value = this.config.token; - this.token.addEventListener('change', this.valueUpdated); - this.content.appendChild(this.token); - this.port.label = 'Plex Port'; this.port.value = this.config.port; this.port.type = 'number'; this.port.addEventListener('change', this.valueUpdated); this.content.appendChild(this.port); + this.token.label = 'Plex Token'; + this.token.value = this.config.token; + this.token.addEventListener('change', this.valueUpdated); + this.content.appendChild(this.token); + this.libraryName.innerHTML = ''; const libraryItems: any = document.createElement('paper-listbox'); libraryItems.appendChild(addDropdownItem('Continue Watching'));