Browse Source

fix(ui): Change project header (#25596)

Change project headers from Projects I belong to/Projects I don't belong to > My Projects/All Projects
Kelly Carino 3 years ago
parent
commit
09d940b49a

+ 2 - 2
static/app/components/contextPickerModal.tsx

@@ -274,7 +274,7 @@ class ContextPickerModal extends React.Component<Props> {
 
     const projectOptions = [
       {
-        label: t('Projects I belong to'),
+        label: t('My Projects'),
         options: memberProjects.map(p => ({
           value: p.slug,
           label: t(`${p.slug}`),
@@ -282,7 +282,7 @@ class ContextPickerModal extends React.Component<Props> {
         })),
       },
       {
-        label: t("Projects I don't belong to"),
+        label: t('All Projects'),
         options: nonMemberProjects.map(p => ({
           value: p.slug,
           label: t(`${p.slug}`),

+ 4 - 4
tests/js/spec/components/contextPickerModal.spec.jsx

@@ -145,7 +145,7 @@ describe('ContextPickerModal', function () {
 
     expect(wrapper.find('StyledSelectControl[name="project"]').prop('options')).toEqual([
       {
-        label: 'Projects I belong to',
+        label: 'My Projects',
         options: [
           {
             value: project.slug,
@@ -160,7 +160,7 @@ describe('ContextPickerModal', function () {
         ],
       },
       {
-        label: "Projects I don't belong to",
+        label: 'All Projects',
         options: [
           {
             value: project4.slug,
@@ -222,7 +222,7 @@ describe('ContextPickerModal', function () {
 
     expect(wrapper.find('StyledSelectControl[name="project"]').prop('options')).toEqual([
       {
-        label: 'Projects I belong to',
+        label: 'My Projects',
         options: [
           {
             value: project2.slug,
@@ -237,7 +237,7 @@ describe('ContextPickerModal', function () {
         ],
       },
       {
-        label: "Projects I don't belong to",
+        label: 'All Projects',
         options: [],
       },
     ]);