mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-08-25 12:15:26 -07:00
feat(notifications): add overlay notifications with position config (#110)
This commit is contained in:
@@ -216,7 +216,15 @@ export function renderControl(
|
||||
|
||||
if (field.control === 'select') {
|
||||
const select = createElement('select', 'config-input') as HTMLSelectElement;
|
||||
for (const enumValue of field.enumValues ?? []) {
|
||||
const enumValues = field.enumValues ?? [];
|
||||
if (typeof value === 'string' && value.length > 0 && !enumValues.includes(value)) {
|
||||
const option = createElement('option') as HTMLOptionElement;
|
||||
option.value = value;
|
||||
option.textContent = `${value} (config file only)`;
|
||||
option.selected = true;
|
||||
select.append(option);
|
||||
}
|
||||
for (const enumValue of enumValues) {
|
||||
const option = createElement('option') as HTMLOptionElement;
|
||||
option.value = enumValue;
|
||||
option.textContent = enumValue;
|
||||
|
||||
Reference in New Issue
Block a user