1
0
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:
Karen 2023-01-23 12:11:25 +01:00 committed by Sylvain
parent d58ab30c4e
commit 9396c5371e
2 changed files with 3 additions and 7 deletions

View File

@ -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];

View File

@ -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