File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed
packages/manager/apps/web-hosting/src/pages/dashboard Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ export default function Layout() {
6363 const logsUrl = useHostingUrl ( serviceName , 'user-logs' ) ;
6464 const ftpUrl = useHostingUrl ( serviceName , 'ftp' ) ;
6565 const databaseUrl = useHostingUrl ( serviceName , 'database' ) ;
66+ const moduleUrl = useHostingUrl ( serviceName , 'module' ) ;
6667 const taskUrl = `#/${ serviceName } /task` ;
6768 const automatedEmailsUrl = useHostingUrl ( serviceName , 'automated-emails' ) ;
6869 const cronUrl = useHostingUrl ( serviceName , 'cron' ) ;
@@ -87,7 +88,11 @@ export default function Layout() {
8788 title : t ( 'hosting_tab_SSL' ) ,
8889 to : sslPathname ,
8990 } ,
90-
91+ {
92+ name : 'module' ,
93+ title : t ( 'hosting_tab_MODULE' ) ,
94+ to : moduleUrl ,
95+ } ,
9196 {
9297 name : 'logs' ,
9398 title : t ( 'hosting_tab_USER_LOGS' ) ,
@@ -143,6 +148,7 @@ export default function Layout() {
143148 ftpUrl ,
144149 databaseUrl ,
145150 taskUrl ,
151+ moduleUrl ,
146152 automatedEmailsUrl ,
147153 cronUrl ,
148154 seoUrl ,
Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ const ActionButtonMultisite: React.FC<ActionButtonMultisiteProps> = ({
5151 if ( context === 'site' ) {
5252 const website = websites . find ( ( w ) => w . id === siteId ) ;
5353 const vcsStatus = website ?. currentState ?. git ?. status ;
54-
55- const hasModule = ! ! website ?. currentState ?. module ?. name ;
54+ // @TODO FOR NEXT STEP
55+ // const hasModule = !!website?.currentState?.module?.name;
5656
5757 const canAssociateGit = [ GitStatus . DISABLED , GitStatus . INITIALERROR ] . includes ( vcsStatus ) ;
5858
@@ -83,7 +83,8 @@ const ActionButtonMultisite: React.FC<ActionButtonMultisiteProps> = ({
8383 onClick : ( ) => navigate ( urls . addDomain . replace ( subRoutes . serviceName , serviceName ) ) ,
8484 label : t ( 'add_domain' ) ,
8585 } ,
86- actionCondition ( ! hasModule , {
86+ // @TODO FOR NEXT STEP
87+ /* actionCondition(!hasModule, {
8788 id: 2,
8889 onClick: () => navigate(urls.addModule.replace(subRoutes.serviceName, serviceName)),
8990 label: t('add_module'),
@@ -102,7 +103,7 @@ const ActionButtonMultisite: React.FC<ActionButtonMultisiteProps> = ({
102103 id: 4,
103104 onClick: () => {},
104105 label: t('access_interface'),
105- } ) ,
106+ }), */
106107 {
107108 id : 5 ,
108109 onClick : ( ) => { } ,
You can’t perform that action at this time.
0 commit comments