mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Text change in search (#22929)
* Text change made it more understandable that this is a search field * Made "New Folder"-button green Since New Dashboard was green I thought New Folder; Import also would be green. Green seems to be the color for creating new items * Update playlist_search.html * change search text * wrong link * Update playlist.md * Update manage_dashboards.html * Update manage_dashboards.html * replaced Filter * replaced Filter * replaced Filter * replaced filter * changed text for placeholder * Update UsersActionBar.tsx * Update UserListAdminPage.tsx * update snapshots Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
This commit is contained in:
@@ -28,7 +28,7 @@ export default class OrgActionBar extends PureComponent<Props> {
|
||||
inputClassName="gf-form-input width-20"
|
||||
value={searchQuery}
|
||||
onChange={setSearchQuery}
|
||||
placeholder={'Filter by name or type'}
|
||||
placeholder={'Search by name or type'}
|
||||
/>
|
||||
<LayoutSelector mode={layoutMode} onLayoutModeChanged={(mode: LayoutMode) => onSetLayoutMode(mode)} />
|
||||
</div>
|
||||
|
@@ -11,7 +11,7 @@ exports[`Render should render component 1`] = `
|
||||
inputClassName="gf-form-input width-20"
|
||||
labelClassName="gf-form--has-input-icon"
|
||||
onChange={[MockFunction]}
|
||||
placeholder="Filter by name or type"
|
||||
placeholder="Search by name or type"
|
||||
value=""
|
||||
/>
|
||||
<LayoutSelector
|
||||
|
@@ -1,17 +1,17 @@
|
||||
<div class="dashboard-list">
|
||||
<div class="page-action-bar page-action-bar--narrow" ng-hide="ctrl.folderId && !ctrl.hasFilters && ctrl.sections.length === 0">
|
||||
<label class="gf-form gf-form--grow gf-form--has-input-icon">
|
||||
<input type="text" class="gf-form-input max-width-30" placeholder="Find Dashboard by name" tabindex="1" give-focus="true" ng-model="ctrl.query.query" ng-model-options="{ debounce: 500 }" spellcheck='false' ng-change="ctrl.onQueryChange()" />
|
||||
<input type="text" class="gf-form-input max-width-30" placeholder="Search dashboards by name" tabindex="1" give-focus="true" ng-model="ctrl.query.query" ng-model-options="{ debounce: 500 }" spellcheck='false' ng-change="ctrl.onQueryChange()" />
|
||||
<i class="gf-form-input-icon fa fa-search"></i>
|
||||
</label>
|
||||
<div class="page-action-bar__spacer"></div>
|
||||
<a class="btn btn-primary" ng-href="{{ctrl.createDashboardUrl()}}" ng-if="ctrl.hasEditPermissionInFolders || ctrl.canSave">
|
||||
New Dashboard
|
||||
</a>
|
||||
<a class="btn btn-inverse" href="dashboards/folder/new" ng-if="!ctrl.folderId && ctrl.isEditor">
|
||||
<a class="btn btn-primary" href="dashboards/folder/new" ng-if="!ctrl.folderId && ctrl.isEditor">
|
||||
New Folder
|
||||
</a>
|
||||
<a class="btn btn-inverse" href="{{ctrl.importDashboardUrl()}}" ng-if="ctrl.hasEditPermissionInFolders || ctrl.canSave">
|
||||
<a class="btn btn-primary" href="{{ctrl.importDashboardUrl()}}" ng-if="ctrl.hasEditPermissionInFolders || ctrl.canSave">
|
||||
Import
|
||||
</a>
|
||||
</div>
|
||||
@@ -49,7 +49,7 @@
|
||||
|
||||
<div class="search-results" ng-show="ctrl.hasFilters && ctrl.sections.length === 0">
|
||||
<em class="muted">
|
||||
No dashboards matching your query were found.
|
||||
No dashboards matching your search were found.
|
||||
</em>
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user