|
|
@ -175,6 +175,8 @@ class PlexMeetsHomeAssistantEditor extends HTMLElement {
|
|
|
|
const addDropdownItem = (text: string, disabled = false): HTMLElement => {
|
|
|
|
const addDropdownItem = (text: string, disabled = false): HTMLElement => {
|
|
|
|
const libraryItem: any = document.createElement('paper-item');
|
|
|
|
const libraryItem: any = document.createElement('paper-item');
|
|
|
|
libraryItem.innerHTML = text.replace(/ /g, ' ');
|
|
|
|
libraryItem.innerHTML = text.replace(/ /g, ' ');
|
|
|
|
|
|
|
|
libraryItem.label = text;
|
|
|
|
|
|
|
|
console.log('Test2');
|
|
|
|
if (disabled) {
|
|
|
|
if (disabled) {
|
|
|
|
libraryItem.disabled = true;
|
|
|
|
libraryItem.disabled = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|