Skip to content

Commit

Permalink
add option to hide dashboard search #971
Browse files Browse the repository at this point in the history
  • Loading branch information
dularion committed May 12, 2020
1 parent eb7f2e2 commit 7a811d2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions grails-app/services/streama/DefaultDataService.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,15 @@ class DefaultDataService {
required: false,
validationRequired: false
],
[
settingsKey: 'Hide Dashboard Search',
name: 'hide-dash-search',
description: 'Determines whether the the top Dashboard Search should be hidden',
settingsType: 'boolean',
value: 'false',
required: false,
validationRequired: false
],
// [
// settingsKey: 'Remove Source After Convert',
// value: 'yes',
Expand Down
2 changes: 1 addition & 1 deletion grails-app/views/templates/_header.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">

<li ng-if="isCurrentState('dash')">
<li ng-if="isCurrentState('dash') && $root.getSetting('hide-dash-search').parsedValue != true">
<div class="dash-search form-group has-feedback">
<input type="text" placeholder="Search.." class="form-control input-xs" ng-model="dashSearch"
typeahead-append-to-body="true" uib-typeahead="(item.title || item.name) for item in searchMedia($viewValue)"
Expand Down

0 comments on commit 7a811d2

Please sign in to comment.