This commit is contained in:
ManeraKai 2024-09-15 06:32:01 +03:00
parent 823af5a0a3
commit ef4bc14882
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
1 changed files with 16 additions and 16 deletions

View File

@ -94,23 +94,23 @@
/> />
</Row> </Row>
<div style={!serviceOptions.enabled && "pointer-events: none;opacity: 0.4;user-select: none;"}> <Row>
<Row> <Label>{browser.i18n.getMessage("showInPopup") || "Show in popup"}</Label>
<Label>{browser.i18n.getMessage("showInPopup") || "Show in popup"}</Label> <Checkbox
<Checkbox checked={_options.popupServices.includes(selectedService)}
checked={_options.popupServices.includes(selectedService)} onChange={e => {
onChange={e => { if (e.target.checked && !_options.popupServices.includes(selectedService)) {
if (e.target.checked && !_options.popupServices.includes(selectedService)) { _options.popupServices.push(selectedService)
_options.popupServices.push(selectedService) } else if (_options.popupServices.includes(selectedService)) {
} else if (_options.popupServices.includes(selectedService)) { const index = _options.popupServices.indexOf(selectedService)
const index = _options.popupServices.indexOf(selectedService) if (index !== -1) _options.popupServices.splice(index, 1)
if (index !== -1) _options.popupServices.splice(index, 1) }
} options.set(_options)
options.set(_options) }}
}} />
/> </Row>
</Row>
<div style={!serviceOptions.enabled && "pointer-events: none;opacity: 0.4;user-select: none;"}>
<Row> <Row>
<Label> <Label>
<a href={frontendWebsite} style="text-decoration: underline;" target="_blank" rel="noopener noreferrer"> <a href={frontendWebsite} style="text-decoration: underline;" target="_blank" rel="noopener noreferrer">