Skip to content

Commit 4f3706b

Browse files
committed
Remove verbose from config ui only and minor visual cleanup
1 parent 4480dfb commit 4f3706b

4 files changed

Lines changed: 4 additions & 12 deletions

File tree

config.schema.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -186,19 +186,14 @@
186186
}
187187
},
188188
"default": []
189-
},
190-
"verbose": {
191-
"type": "boolean",
192-
"title": "${config.title.verbose}",
193-
"description": "${config.description.verbose}"
194189
}
195190
}
196191
},
197192
"layout": [
198193
{
199194
"type": "array",
200195
"key": "accessories",
201-
"title": "${config.title.accessories}",
196+
"notitle": true,
202197
"items": [
203198
{
204199
"type": "fieldset",
@@ -446,7 +441,6 @@
446441
]
447442
}
448443
]
449-
},
450-
"verbose"
444+
}
451445
]
452446
}

src/homebridge-ui/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
</br><button type="button" class="btn btn-primary" id="introContinue" i18n="continue", i18n_replace="arrow"></button>
1616
</div>
1717

18-
<footer id="footer" class="text-center" style="display: none; color: #ba0000;" i18n="optional"></footer>
18+
<footer id="footer" class="text-center" style="display: none; font-style: italic; font-size: 0.9em;" i18n="optional"></footer>
1919

2020
<script src="ui.js?v=__VERSION__"></script>

src/homebridge-ui/ui.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ const translateSchema = (strings: Translation) => {
5757

5858
const updateAccessoryNames = (strings: Translation) => {
5959

60-
const legends = Array.from(window.parent.document.querySelectorAll('fieldset legend'))
61-
.filter(el => !el.textContent?.includes(strings.config.title.accessories));
60+
const legends = Array.from(window.parent.document.querySelectorAll('fieldset legend'));
6261

6362
for(const legend of legends) {
6463
const fieldset = legend.closest('fieldset');

src/i18n/en.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ const en = {
2828
},
2929

3030
title: {
31-
accessories: 'Accessories',
3231
accessory: 'Accessory',
3332
broker: 'Broker',
3433
disableLogging: 'Disable Logging',

0 commit comments

Comments
 (0)