20221011083711_max_tabs_setting.rb 764 B

123456789101112131415161718192021
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class MaxTabsSetting < ActiveRecord::Migration[6.1]
  3. def change
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. Setting.create_if_not_exists(
  7. title: 'Maximum number of allowed tasks before auto cleanup removes surplus tasks.',
  8. name: 'ui_task_mananger_max_task_count',
  9. area: 'UI::TaskManager::Task::MaxCount',
  10. description: 'Defines the maximum number of allowed task bar tasks before auto cleanup removes surplus tasks when creating new tasks.',
  11. options: {},
  12. state: 30,
  13. preferences: {
  14. permission: ['admin.ui'],
  15. },
  16. frontend: true
  17. )
  18. end
  19. end