diff --git a/src/app/core/components/navigation/navigation.service.ts b/src/app/core/components/navigation/navigation.service.ts index ef638a84..09d4dcd2 100644 --- a/src/app/core/components/navigation/navigation.service.ts +++ b/src/app/core/components/navigation/navigation.service.ts @@ -44,10 +44,10 @@ export class FuseNavigationService if ( navItem.type === 'nav-item' ) { this.flatNavigation.push({ - title : navItem.title, - titleAbbr: navItem.title.substr(0, 1).toUpperCase(), - icon : navItem.icon || false, - url : navItem.url + title: navItem.title, + type : navItem.type, + icon : navItem.icon || false, + url : navItem.url }); continue; diff --git a/src/app/core/components/shortcuts/shortcuts.component.html b/src/app/core/components/shortcuts/shortcuts.component.html index a331cb0f..c0e595e2 100644 --- a/src/app/core/components/shortcuts/shortcuts.component.html +++ b/src/app/core/components/shortcuts/shortcuts.component.html @@ -7,36 +7,38 @@ {{shortcutItem.icon}} - {{shortcutItem.titleAbbr}} + + {{shortcutItem.title.substr(0, 1).toUpperCase()}} + - - + - - + + + - -

Current Shortcuts

{{shortcutItem.icon}} - {{shortcutItem.titleAbbr}} + {{shortcutItem.title.substr(0, 1).toUpperCase()}} -

{{shortcutItem.title}}

+

{{shortcutItem.title}}

+ star
@@ -46,20 +48,20 @@
- +
{{navigationItem.icon}} - {{navigationItem.titleAbbr}} + {{navigationItem.title.substr(0, 1).toUpperCase()}} -

{{navigationItem.title}}

+

{{navigationItem.title}}

+ star
-
- \ No newline at end of file + diff --git a/src/app/core/components/shortcuts/shortcuts.component.ts b/src/app/core/components/shortcuts/shortcuts.component.ts index f369bc8e..e3e1df37 100644 --- a/src/app/core/components/shortcuts/shortcuts.component.ts +++ b/src/app/core/components/shortcuts/shortcuts.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit } from '@angular/core'; +import { Component, OnInit, ViewChild, ViewChildren } from '@angular/core'; import { FuseNavigationService } from '../navigation/navigation.service'; @Component({ @@ -12,6 +12,7 @@ export class FuseShortcutsComponent implements OnInit navigationItems: any[]; filteredNavigationItems: any[]; searching = false; + @ViewChild('searchInput') searchInputField; constructor(private fuseNavigationService: FuseNavigationService) { @@ -84,4 +85,16 @@ export class FuseShortcutsComponent implements OnInit this.shortcutItems.push(itemToToggle); } + + isInShortcuts(navigationItem) + { + return this.shortcutItems.find(item => { + return item.url === navigationItem.url; + }); + } + + onMenuOpen() + { + this.searchInputField.nativeElement.focus(); + } } diff --git a/src/app/core/scss/partials/_colors.scss b/src/app/core/scss/partials/_colors.scss index 4da83777..51050031 100644 --- a/src/app/core/scss/partials/_colors.scss +++ b/src/app/core/scss/partials/_colors.scss @@ -1,16 +1,16 @@ .secondary-text, .mat-icon, .icon { - color: rgba(0, 0, 0, 0.54) !important; + color: rgba(0, 0, 0, 0.54); } .hint-text, .disabled-text { - color: rgba(0, 0, 0, 0.38) !important; + color: rgba(0, 0, 0, 0.38); } .divider { - color: rgba(0, 0, 0, 0.12) !important; + color: rgba(0, 0, 0, 0.12); } // Material colors map @@ -54,7 +54,7 @@ $matColorHues: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, A100, A200, A400 .secondary-text, .mat-icon, .icon { - color: rgba(0, 0, 0, 0.54) !important; + color: rgba(0, 0, 0, 0.54); } &.hint-text, @@ -79,7 +79,7 @@ $matColorHues: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, A100, A200, A400 .mat-icon, .icon { - color: rgba(255, 255, 255, 1) !important; + color: rgba(255, 255, 255, 1); } &.secondary-text, @@ -168,4 +168,4 @@ $matColorHues: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, A100, A200, A400 } } } -} \ No newline at end of file +}