"dashboard" renamed to "machines" to pave the road for the real dash

This commit is contained in:
Dragos 2021-05-11 12:24:42 +03:00
parent 92ab2e2ab4
commit 3ede3e1629
4 changed files with 9 additions and 21 deletions

View File

@ -9,22 +9,10 @@ const appRoutes: Routes = [
{
path: '',
pathMatch: 'full',
redirectTo: 'dashboard',
redirectTo: 'machines',
},
{
path: 'file-manager',
loadChildren: () => import('./file-manager/file-manager.module').then(x => x.FileManagerModule),
canActivate: [AuthGuardService],
canLoad: [AuthGuardService],
data:
{
title: 'fileManager.title',
subTitle: 'fileManager.subTitle',
icon: 'folder'
}
},
{
path: 'dashboard',
path: 'machines',
loadChildren: () => import('./instances/instances.module').then(x => x.InstancesModule),
canActivate: [AuthGuardService],
canLoad: [AuthGuardService],

View File

@ -30,7 +30,7 @@ import { AuthInterceptorService } from './helpers/auth-interceptor.service';
],
imports: [
BrowserAnimationsModule,
BrowserModule.withServerTransition({ appId: 'manta-portal' }),
BrowserModule.withServerTransition({ appId: 'spearhead-portal' }),
HttpClientModule,
AppRoutingModule,
SharedModule,

View File

@ -3,7 +3,7 @@
<li class="nav-item">
<a class="nav-link" [routerLink]="['./']" [routerLinkActive]="['active']" [routerLinkActiveOptions]="{ exact: true }">
<fa-icon [fixedWidth]="true" icon="home"></fa-icon>
{{ 'navbar.menu.dashboard' | translate }}
{{ 'navbar.menu.instances' | translate }}
</a>
</li>
<li class="nav-item">

View File

@ -4,7 +4,7 @@
"menu":
{
"dashboard": "Dashboard",
"fileManager": "File Manager",
"instances": "Machines",
"volumes": "Volumes",
"images": "Images",
"networks": "Networks",
@ -28,14 +28,14 @@
"subTitle": ""
}
},
"fileManager":
"dashboard":
{
"title": "File Manager",
"subTitle": "Manage your files"
"title": "Dashboard",
"subTitle": ""
},
"instances":
{
"title": "Dashboard",
"title": "Machines",
"subTitle": ""
},
"networks":