Added the ability to configure horizon

This commit is contained in:
Rafael Horvat
2022-03-29 16:51:03 +02:00
parent 4e668a4098
commit 8f82fbe078
5 changed files with 61 additions and 1 deletions

View File

@@ -36,6 +36,15 @@ app.initializers.add(slug, () => {
label: t(`${prfx}.enable_queue`),
});
if (app.initializers.has('blomstra/horizon')) {
app.extensionData.for(slug).registerSetting({
setting: 'glowingblue-redis.horizonConfig',
type: 'textarea',
label: t(`${prfx}.horizon_config`),
help: t(`${prfx}.horizon_help_text`),
});
}
extend(StatusWidget.prototype, 'items', (items) => {
const loads = app.data.blomstraQueuesLoad;