20180202000001_sidebar_customer_open_ticket_colored.rb 931 B

12345678910111213141516171819202122232425262728293031323334
  1. class SidebarCustomerOpenTicketColored < ActiveRecord::Migration[5.1]
  2. def up
  3. # return if it's a new setup
  4. return if !Setting.find_by(name: 'system_init_done')
  5. Setting.create_if_not_exists(
  6. title: 'Open ticket indicator',
  7. name: 'ui_sidebar_open_ticket_indicator_colored',
  8. area: 'UI::Sidebar',
  9. description: 'Color representation of the open ticket indicator in the sidebar.',
  10. options: {
  11. form: [
  12. {
  13. display: '',
  14. null: true,
  15. name: 'ui_sidebar_open_ticket_indicator_colored',
  16. tag: 'boolean',
  17. translate: true,
  18. options: {
  19. true => 'yes',
  20. false => 'no',
  21. },
  22. },
  23. ],
  24. },
  25. state: false,
  26. preferences: {
  27. permission: ['admin.ui'],
  28. },
  29. frontend: true
  30. )
  31. end
  32. end