Skip to content

Commit

Permalink
Merge pull request #22646 from Fryguy/reload_menu_when_prototype_changes
Browse files Browse the repository at this point in the history
Reload UI menu when Settings.prototype changes

(cherry picked from commit f39a498)
  • Loading branch information
agrare authored and Fryguy committed Aug 10, 2023
1 parent 7ea7b24 commit 27c38f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/vmdb/settings/activator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ def event_handling(_data)
EventStream.clear_event_groups_cache
end

def prototype(_data)
Menu::Manager.reload if defined?(Menu::Manager) # NOTE: Can be removed after Settings.prototype.ems_workflows is removed
end

def session(data)
Session.timeout(data.timeout)
Session.interval(data.interval)
Expand Down

0 comments on commit 27c38f4

Please sign in to comment.