Minor refactoring. Removed unusable elements.
authorArtem Motchanyi <a.motchanyi@samsung.com>
Mon, 26 Mar 2018 12:31:49 +0000 (15:31 +0300)
committerArtem Motchanyi <a.motchanyi@samsung.com>
Mon, 26 Mar 2018 12:31:49 +0000 (15:31 +0300)
dashboard/src/app/@core/core.module.ts
dashboard/src/app/@theme/components/header/header.component.html
dashboard/src/app/@theme/layout/main.layout.html
dashboard/src/app/@theme/layout/main.layout.scss
dashboard/src/app/pages/pages-menu.ts

index 04dff78..be396d0 100644 (file)
@@ -23,7 +23,7 @@ const NB_CORE_PROVIDERS = [
           login: {
             endpoint: '/auth/login',
             redirect: {
-              success: '/home/dashboard',
+              success: '/home/devices',
             },
           },
           register: {
@@ -70,7 +70,7 @@ const NB_CORE_PROVIDERS = [
   ],
 })
 export class CoreModule {
-  constructor( @Optional() @SkipSelf() parentModule: CoreModule) {
+  constructor(@Optional() @SkipSelf() parentModule: CoreModule) {
     throwIfAlreadyLoaded(parentModule, 'CoreModule');
   }
 
index 50cf5c8..2bb5ee4 100644 (file)
@@ -15,7 +15,7 @@
   <nb-action>
     <nb-user [nbContextMenu]="userMenu" [name]="user?.fullName" [picture]="user?.picture"></nb-user>
   </nb-action>
-  <nb-action class="control-item" icon="nb-notifications"></nb-action>
+  <nb-action class="control-item"></nb-action>
   <nb-action class="control-item">
     <nb-search type="rotate-layout" (click)="startSearch()"></nb-search>
   </nb-action>
index 9d7052b..eb4475e 100644 (file)
@@ -8,8 +8,8 @@
                responsive
                [right]="sidebar.id === 'right'">
     <nb-sidebar-header>
-      <a href="#" class="btn btn-hero-success main-btn">
-        <i class="ion ion-checkmark-round"></i> <span>OK state</span>
+      <a href="#" class="btn btn-hero-info main-btn">
+        <i class="ion ion-stats-bars"></i> <span>Dashboard</span>
       </a>
     </nb-sidebar-header>
     <ng-content select="nb-menu"></ng-content>
index 117083b..7128156 100644 (file)
@@ -65,6 +65,7 @@
       margin-top: -2rem;
       font-weight: bold;
       transition: padding 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.48);
+      cursor: pointer;
 
       i {
         font-size: 2rem;
index ffdee5e..708f343 100644 (file)
@@ -2,14 +2,9 @@ import { NbMenuItem } from '@nebular/theme';
 
 export const MENU_ITEMS: NbMenuItem[] = [
   {
-    title: 'Dashboard',
-    icon: 'nb-bar-chart',
-    link: '/home/dashboard',
-    home: true,
-  },
-  {
     title: 'Devices',
     icon: 'nb-keypad',
     link: '/home/devices',
+    home: true,
   },
 ];