"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: '', path: '',
pathMatch: 'full', pathMatch: 'full',
redirectTo: 'dashboard', redirectTo: 'machines',
}, },
{ {
path: 'file-manager', path: 'machines',
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',
loadChildren: () => import('./instances/instances.module').then(x => x.InstancesModule), loadChildren: () => import('./instances/instances.module').then(x => x.InstancesModule),
canActivate: [AuthGuardService], canActivate: [AuthGuardService],
canLoad: [AuthGuardService], canLoad: [AuthGuardService],

View File

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

View File

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

View File

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