Commit 47c455e0 authored by David O'Regan's avatar David O'Regan

Merge branch '333297-display-debian-packages-and-metadata-in-the-ui' into 'master'

Resolve "Display Debian packages in the UI"

See merge request gitlab-org/gitlab!64615
parents 645c5647 188b1a89
......@@ -86,6 +86,10 @@ export const PACKAGE_TYPES = [
title: s__('PackageRegistry|RubyGems'),
type: PackageType.RUBYGEMS,
},
{
title: s__('PackageRegistry|Debian'),
type: PackageType.DEBIAN,
},
];
export const LIST_TITLE_TEXT = s__('PackageRegistry|Package Registry');
......
......@@ -9,6 +9,7 @@ export const PackageType = {
COMPOSER: 'composer',
RUBYGEMS: 'rubygems',
GENERIC: 'generic',
DEBIAN: 'debian',
};
// we want this separated from the main dictionary to avoid it being pulled in the search of package
......
......@@ -25,6 +25,8 @@ export const getPackageTypeLabel = (packageType) => {
return s__('PackageRegistry|Composer');
case PackageType.GENERIC:
return s__('PackageRegistry|Generic');
case PackageType.DEBIAN:
return s__('PackageRegistry|Debian');
default:
return null;
}
......
......@@ -23207,6 +23207,9 @@ msgstr ""
msgid "PackageRegistry|Created by commit %{link} on branch %{branch}"
msgstr ""
msgid "PackageRegistry|Debian"
msgstr ""
msgid "PackageRegistry|Delete Package File"
msgstr ""
......
......@@ -40,6 +40,7 @@ describe('Packages shared utils', () => {
${'pypi'} | ${'PyPI'}
${'rubygems'} | ${'RubyGems'}
${'composer'} | ${'Composer'}
${'debian'} | ${'Debian'}
${'foo'} | ${null}
`(`package type`, ({ packageType, expectedResult }) => {
it(`${packageType} should show as ${expectedResult}`, () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment