Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #38080 - Added lab navigation menu for flatpak UI #11254

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions lib/katello/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions webpack/containers/Application/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down Expand Up @@ -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') })),
},
];
3 changes: 3 additions & 0 deletions webpack/scenes/Flatpak/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import React from 'react';

export default () => <h1>Flatpak Remotes UI</h1>;
Loading