mirror of
https://github.com/glowingblue/flarum-ext-redis-setup.git
synced 2026-03-22 15:07:53 +01:00
Added the ability to configure horizon
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user