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 = [ ...@@ -86,6 +86,10 @@ export const PACKAGE_TYPES = [
title: s__('PackageRegistry|RubyGems'), title: s__('PackageRegistry|RubyGems'),
type: PackageType.RUBYGEMS, type: PackageType.RUBYGEMS,
}, },
{
title: s__('PackageRegistry|Debian'),
type: PackageType.DEBIAN,
},
]; ];
export const LIST_TITLE_TEXT = s__('PackageRegistry|Package Registry'); export const LIST_TITLE_TEXT = s__('PackageRegistry|Package Registry');
......
...@@ -9,6 +9,7 @@ export const PackageType = { ...@@ -9,6 +9,7 @@ export const PackageType = {
COMPOSER: 'composer', COMPOSER: 'composer',
RUBYGEMS: 'rubygems', RUBYGEMS: 'rubygems',
GENERIC: 'generic', GENERIC: 'generic',
DEBIAN: 'debian',
}; };
// we want this separated from the main dictionary to avoid it being pulled in the search of package // 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) => { ...@@ -25,6 +25,8 @@ export const getPackageTypeLabel = (packageType) => {
return s__('PackageRegistry|Composer'); return s__('PackageRegistry|Composer');
case PackageType.GENERIC: case PackageType.GENERIC:
return s__('PackageRegistry|Generic'); return s__('PackageRegistry|Generic');
case PackageType.DEBIAN:
return s__('PackageRegistry|Debian');
default: default:
return null; return null;
} }
......
...@@ -23204,6 +23204,9 @@ msgstr "" ...@@ -23204,6 +23204,9 @@ msgstr ""
msgid "PackageRegistry|Created by commit %{link} on branch %{branch}" msgid "PackageRegistry|Created by commit %{link} on branch %{branch}"
msgstr "" msgstr ""
msgid "PackageRegistry|Debian"
msgstr ""
msgid "PackageRegistry|Delete Package File" msgid "PackageRegistry|Delete Package File"
msgstr "" msgstr ""
......
...@@ -40,6 +40,7 @@ describe('Packages shared utils', () => { ...@@ -40,6 +40,7 @@ describe('Packages shared utils', () => {
${'pypi'} | ${'PyPI'} ${'pypi'} | ${'PyPI'}
${'rubygems'} | ${'RubyGems'} ${'rubygems'} | ${'RubyGems'}
${'composer'} | ${'Composer'} ${'composer'} | ${'Composer'}
${'debian'} | ${'Debian'}
${'foo'} | ${null} ${'foo'} | ${null}
`(`package type`, ({ packageType, expectedResult }) => { `(`package type`, ({ packageType, expectedResult }) => {
it(`${packageType} should show as ${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