20180202000001_sidebar_customer_open_ticket_colored.rb 1008 B

123456789101112131415161718192021222324252627282930313233343536
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. class SidebarCustomerOpenTicketColored < ActiveRecord::Migration[5.1]
  3. def up
  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: 'Open ticket indicator',
  8. name: 'ui_sidebar_open_ticket_indicator_colored',
  9. area: 'UI::Sidebar',
  10. description: 'Color representation of the open ticket indicator in the sidebar.',
  11. options: {
  12. form: [
  13. {
  14. display: '',
  15. null: true,
  16. name: 'ui_sidebar_open_ticket_indicator_colored',
  17. tag: 'boolean',
  18. translate: true,
  19. options: {
  20. true => 'yes',
  21. false => 'no',
  22. },
  23. },
  24. ],
  25. },
  26. state: false,
  27. preferences: {
  28. permission: ['admin.ui'],
  29. },
  30. frontend: true
  31. )
  32. end
  33. end