2 class="shortcuts-container"
4 layout-align="space-between center"
6 ng-class="{'mobile-bar-active': MsShortcuts.mobileBarActive}"
11 layout-align="start center"
13 ng-if="MsShortcuts.shortcuts.length > 0"
16 class="shortcuts hide show-gt-xs"
18 layout-align="start center"
20 ng-sortable="MsShortcuts.sortableOptions"
23 ng-repeat="shortcut in MsShortcuts.shortcuts"
25 layout-align="center center"
28 class="md-icon-button shortcut"
29 aria-label="{{shortcut.title}}"
30 ui-sref="{{shortcut.uisref}}"
34 md-font-icon="{{shortcut.icon}}"
37 <div ng-if="!shortcut.icon" class="first-letter">
38 {{shortcut.title.charAt(0)}}
40 <md-tooltip md-direction="bottom">{{shortcut.title}}</md-tooltip>
45 <!-- <md-menu md-offset="8 56" class="shortcut-menu hide show-gt-xs">
46 <md-button class="md-icon-button add-shortcut-button" aria-label="Add shortcut"
47 ng-click="$mdMenu.open($event)">
48 <md-icon md-menu-origin md-font-icon="icon-star" class="icon amber-600-fg s24"></md-icon>
49 <md-tooltip md-direction="bottom">Click to add/remove shortcut</md-tooltip>
53 <div id="ms-shortcut-add-menu">
54 <div class="shortcut-search" layout="row" layout-align="start center">
55 <div class="search-icon" layout="row" layout-align="center center"
56 ng-if="!MsShortcuts.resultsLoading">
57 <md-icon md-menu-align-target md-font-icon="icon-magnify" class="icon s24"></md-icon>
59 <div class="shortcut-loader" layout="row" layout-align="center center"
60 ng-if="MsShortcuts.resultsLoading">
61 <md-progress-circular class="md-accent" md-diameter="20" md-mode="indeterminate">
62 </md-progress-circular>
65 <input type="text" placeholder="Search" flex
66 ng-model="MsShortcuts.query"
67 ng-model-options="MsShortcuts.queryOptions"
68 ng-keydown="MsShortcuts.handleKeydown($event)">
71 <div class="results" ng-if="MsShortcuts.results" ms-scroll>
72 <div class="no-results" ng-if="MsShortcuts.results.length === 0">No Results!</div>
74 <div class="result" ng-repeat="result in MsShortcuts.results"
75 ng-click="MsShortcuts.handleResultClick(result)"
76 ng-mouseenter="MsShortcuts.handleMouseenter($index)"
77 ng-mousedown="MsShortcuts.absorbEvent($event)"
78 ng-class="{'selected': $index == MsShortcuts.selectedResultIndex}"
79 md-prevent-menu-close="md-prevent-menu-close"
81 <div layout="row" layout-align="start space-between">
82 <div layout="row" layout-align="start center" flex>
83 <div class="icon icon-container" layout="row" layout-align="center center">
84 <i ng-if="result.icon" class="{{result.icon}}"></i>
85 <div ng-if="!result.icon" class="square md-accent-bg"></div>
88 <div class="title">{{result.title}}</div>
91 <md-icon md-font-icon="icon-pin" class="icon s18"
92 ng-class="{'fade-text': !result.hasShortcut}"></md-icon>
102 class="md-icon-button toggle-mobile-menu hide-gt-xs"
103 aria-label="Add shortcut"
104 ng-click="MsShortcuts.toggleMobileBar()"
108 md-font-icon="icon-star"
109 class="icon amber-600-fg s24"
110 ng-hide="MsShortcuts.mobileBarActive"
114 md-font-icon="icon-close"
116 ng-hide="!MsShortcuts.mobileBarActive"