20230207152500_ticket_article_note_hint.rb 1.0 KB

1234567891011121314151617181920212223242526
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class TicketArticleNoteHint < ActiveRecord::Migration[6.1]
  3. def up
  4. return if !Setting.exists?(name: 'system_init_done')
  5. Setting.create_if_not_exists(
  6. title: 'Hint for adding an article to an existing ticket.',
  7. name: 'ui_ticket_add_article_hint',
  8. area: 'UI::TicketZoomArticle',
  9. description: 'Highlights if the note a user is writing is public or private',
  10. options: {},
  11. state: {
  12. # 'note-internal' => 'You are writing an |internal note|, only people of your organization will see it.',
  13. # 'note-public' => 'You are writing a |public note|.',
  14. # 'phone-internal' => 'You are writing an |internal phone note|, only people of your organization will see it.',
  15. # 'phone-public' => 'You are writing a |public phone note|.',
  16. # ....
  17. },
  18. preferences: {
  19. permission: ['admin.ui'],
  20. },
  21. frontend: true
  22. )
  23. end
  24. end