]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-20086 - Changing create project dropdown menu
authorKevin Silva <kevin.silva@sonarsource.com>
Fri, 4 Aug 2023 17:10:33 +0000 (19:10 +0200)
committersonartech <sonartech@sonarsource.com>
Mon, 14 Aug 2023 20:02:57 +0000 (20:02 +0000)
server/sonar-web/src/main/js/apps/projects/components/ProjectCreationMenu.tsx
server/sonar-web/src/main/js/apps/projects/components/__tests__/PageHeader-test.tsx

index edd30c5145ccdebdffcce6090c1f80c34603c8cd..b9aa166e627b43f0496fbdf4b2eb91ed4bec290a 100644 (file)
@@ -119,9 +119,13 @@ export class ProjectCreationMenu extends React.PureComponent<Props, State> {
             {[...boundAlms, 'manual'].map((alm) => (
               <ProjectCreationMenuItem alm={alm} key={alm} />
             ))}
-            <ItemDivider />
             {boundAlms.length < IMPORT_COMPATIBLE_ALMS.length && (
-              <ItemLink to={{ pathname: '/projects/create' }}>{translate('more')}</ItemLink>
+              <>
+                <ItemDivider />
+                <ItemLink to={{ pathname: '/projects/create' }}>
+                  {translate('my_account.add_project.more')}
+                </ItemLink>
+              </>
             )}
           </>
         }
index 119085817fceb35a4571fe9dee1a33c600afb57e..d4468e2c36aabb916fc78ebf5ca966004f62c9a0 100644 (file)
@@ -54,7 +54,7 @@ const ui = {
   selectOptionBitbucket: byText('my_account.add_project.bitbucket'),
   selectOptionBitbucketCloud: byText('my_account.add_project.bitbucketcloud'),
   selectOptionManual: byText('my_account.add_project.manual'),
-  selectOptionMore: byText('more'),
+  selectOptionMore: byText('my_account.add_project.more'),
   selectOptionNewCode: byText('projects.view.new_code'),
   selectOptionAnalysisDate: byText('projects.sorting.analysis_date'),
   mandatoryFieldWarning: byText('fields_marked_with_x_required'),