diff --git a/lib/katello/plugin.rb b/lib/katello/plugin.rb index 4c5ee25098e..893cc1ec53c 100644 --- a/lib/katello/plugin.rb +++ b/lib/katello/plugin.rb @@ -204,6 +204,15 @@ :after => :content_hosts, :turbolinks => false + menu :labs_menu, + :flatpak, + :url => '/labs/flatpak_remotes', + :url_hash => {:controller => 'katello/api/v2/flatpak_remotes_controller', + :action => 'index'}, + :caption => N_('Flatpak Remotes'), + :parent => :lab_features_menu, + :turbolinks => false + extend_template_helpers Katello::KatelloUrlsHelper extend_template_helpers Katello::Concerns::BaseTemplateScopeExtensions diff --git a/webpack/containers/Application/config.js b/webpack/containers/Application/config.js index b23d84e8da8..7e261db991c 100644 --- a/webpack/containers/Application/config.js +++ b/webpack/containers/Application/config.js @@ -15,6 +15,7 @@ import ContentDetails from '../../scenes/Content/Details'; import withHeader from './withHeaders'; import ChangeContentSource from '../../scenes/Hosts/ChangeContentSource'; import AlternateContentSource from '../../scenes/AlternateContentSources'; +import Flatpak from '../../scenes/Flatpak'; // eslint-disable-next-line import/prefer-default-export export const links = [ @@ -85,4 +86,8 @@ export const links = [ component: WithOrganization(withHeader(AlternateContentSource, { title: __('Alternate Content Sources') })), exact: false, }, + { + path: 'labs/flatpak_remotes', + component: WithOrganization(withHeader(Flatpak, { title: __('Flatpak Remotes') })), + }, ]; diff --git a/webpack/scenes/Flatpak/index.js b/webpack/scenes/Flatpak/index.js new file mode 100644 index 00000000000..51472e88b42 --- /dev/null +++ b/webpack/scenes/Flatpak/index.js @@ -0,0 +1,3 @@ +import React from 'react'; + +export default () =>