mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-18 07:52:23 +01:00
(feat) create settings for machines banner backend
This commit is contained in:
parent
d58ab30c4e
commit
9396c5371e
@ -243,12 +243,9 @@ export const trainingSettings = [
|
||||
'trainings_invalidation_rule_period'
|
||||
] as const;
|
||||
|
||||
export const machineBannerSettings = [
|
||||
'machines_banner_active',
|
||||
export const bannersSettings = [
|
||||
'machines_banner_text',
|
||||
'machines_banner_cta_active',
|
||||
'machines_banner_cta_label',
|
||||
'machines_banner_cta_url'
|
||||
'machines_banner_button'
|
||||
] as const;
|
||||
|
||||
export const allSettings = [
|
||||
@ -278,7 +275,7 @@ export const allSettings = [
|
||||
...displaySettings,
|
||||
...storeSettings,
|
||||
...trainingSettings,
|
||||
...machineBannerSettings
|
||||
...bannersSettings
|
||||
] as const;
|
||||
|
||||
export type SettingName = typeof allSettings[number];
|
||||
|
@ -173,7 +173,6 @@ class Setting < ApplicationRecord
|
||||
trainings_authorization_validity_duration
|
||||
trainings_invalidation_rule
|
||||
trainings_invalidation_rule_period
|
||||
trainings_auto_cancel_deadline
|
||||
machines_banner_active
|
||||
machines_banner_text
|
||||
machines_banner_cta_active
|
||||
|
Loading…
x
Reference in New Issue
Block a user