Commit 188b1a89 authored by Nicolò Maria Mezzopera's avatar Nicolò Maria Mezzopera Committed by David O'Regan

Resolve "Display Debian packages in the UI"

parent 8ee19b92
......@@ -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;
}
......
......@@ -23204,6 +23204,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