module ApplicationHelper::Button::Mixins::SubListViewScreenMixin
  def sub_list_view_screen?
    @lastaction == 'show' && !@display.in?(%w(main vms instances all_vms))
  end
end

Create a universal mixin for buttons ending with _new or _discover
Create a universal mixin for buttons ending with _new or _discover

(cherry picked from commit fe926f173c46e51847ebd7e5f05f007132dc7764)
