2019-04-12 10:40:48 +02:00
|
|
|
<div class="page-action-bar">
|
|
|
|
|
<h3 class="dashboard-settings__header">
|
|
|
|
|
<a ng-click="ctrl.backToList()">Dashboard Links</a>
|
2020-04-12 22:20:02 +02:00
|
|
|
<span ng-show="ctrl.mode === 'new'"><icon name="'angle-right'"></icon> New</span>
|
|
|
|
|
<span ng-show="ctrl.mode === 'edit'"><icon name="'angle-right'"></icon> Edit</span>
|
2019-04-12 10:40:48 +02:00
|
|
|
</h3>
|
|
|
|
|
|
|
|
|
|
<div class="page-action-bar__spacer"></div>
|
|
|
|
|
<a
|
|
|
|
|
type="button"
|
|
|
|
|
class="btn btn-primary"
|
|
|
|
|
ng-click="ctrl.setupNew()"
|
|
|
|
|
ng-if="ctrl.dashboard.links.length > 0"
|
@grafana/ui: Create Icon component and replace part of the icons (#23402)
* Part1: Unicons implementation (#23197)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* NewPanelEditor: Fixed so that test alert rule works in new edit mode (#23179)
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Remove color prop from icon, remove color implemetation in mono icons
* Update navbar styling
* Move toPascalCase to utils/string
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Resolve type errors resulted from merge
* Part2: Unicons implementation (#23266)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Implment icons in Tabs
* Implement icons in search items and empty list
* Update buttons
* Update button-related snapshot tests
* Update icons in modals and page headers
* Create anfular wrapper and update all icons on search screen
* Update sizing, remove colors, update snapshot tests
* Remove color prop from icon, remove color implemetation in mono icons
* Remove color props from monochrome icons
* Complete update of icons for search screen
* Update icons for infor tooltips, playlist, permissions
* Support temporarly font awesome icons used in enterprise grafana
* Part1: Unicons implementation (#23197)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* NewPanelEditor: Fixed so that test alert rule works in new edit mode (#23179)
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Remove color prop from icon, remove color implemetation in mono icons
* Update navbar styling
* Move toPascalCase to utils/string
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Icons update
* Add optional chaining to for isFontAwesome variable
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Part3: Unicons implementation (#23356)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Implment icons in Tabs
* Implement icons in search items and empty list
* Update buttons
* Update button-related snapshot tests
* Update icons in modals and page headers
* Create anfular wrapper and update all icons on search screen
* Update sizing, remove colors, update snapshot tests
* Remove color prop from icon, remove color implemetation in mono icons
* Remove color props from monochrome icons
* Complete update of icons for search screen
* Update icons for infor tooltips, playlist, permissions
* Support temporarly font awesome icons used in enterprise grafana
* Part1: Unicons implementation (#23197)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* NewPanelEditor: Fixed so that test alert rule works in new edit mode (#23179)
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Remove color prop from icon, remove color implemetation in mono icons
* Update navbar styling
* Move toPascalCase to utils/string
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Update icons in Explore
* Update icons in alerting
* Update + and x buttons
* Update icons in configurations and settings
* Update close icons
* Update icons in rich history
* Update alert messages
* Add optional chaining to for isFontAwesome variable
* Remove icon mock, set up jest.config
* Fix navbar plus icon
* Fir enable-bacground to enableBackgournd
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Merge remote branch origin master to icons-unicons
* Revert "Merge remote branch origin master to icons-unicons"
This reverts commit 3f25d50a39a940883fefe73ce51219139c1ed37f.
* Size-up dashnav icons
* Fix alerting icons, panel headers, update tests
* Fix typecheck error
* Adjustments - add panel icon, spacing
* Set TerserPlugin sourceMap to false to prevent running out of memory when publishing storybook
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2020-04-08 14:33:31 +02:00
|
|
|
ng-hide="ctrl.mode === 'edit' || ctrl.mode === 'new'"
|
2019-04-12 10:40:48 +02:00
|
|
|
>
|
@grafana/ui: Create Icon component and replace part of the icons (#23402)
* Part1: Unicons implementation (#23197)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* NewPanelEditor: Fixed so that test alert rule works in new edit mode (#23179)
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Remove color prop from icon, remove color implemetation in mono icons
* Update navbar styling
* Move toPascalCase to utils/string
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Resolve type errors resulted from merge
* Part2: Unicons implementation (#23266)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Implment icons in Tabs
* Implement icons in search items and empty list
* Update buttons
* Update button-related snapshot tests
* Update icons in modals and page headers
* Create anfular wrapper and update all icons on search screen
* Update sizing, remove colors, update snapshot tests
* Remove color prop from icon, remove color implemetation in mono icons
* Remove color props from monochrome icons
* Complete update of icons for search screen
* Update icons for infor tooltips, playlist, permissions
* Support temporarly font awesome icons used in enterprise grafana
* Part1: Unicons implementation (#23197)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* NewPanelEditor: Fixed so that test alert rule works in new edit mode (#23179)
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Remove color prop from icon, remove color implemetation in mono icons
* Update navbar styling
* Move toPascalCase to utils/string
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Icons update
* Add optional chaining to for isFontAwesome variable
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Part3: Unicons implementation (#23356)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Implment icons in Tabs
* Implement icons in search items and empty list
* Update buttons
* Update button-related snapshot tests
* Update icons in modals and page headers
* Create anfular wrapper and update all icons on search screen
* Update sizing, remove colors, update snapshot tests
* Remove color prop from icon, remove color implemetation in mono icons
* Remove color props from monochrome icons
* Complete update of icons for search screen
* Update icons for infor tooltips, playlist, permissions
* Support temporarly font awesome icons used in enterprise grafana
* Part1: Unicons implementation (#23197)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* NewPanelEditor: Fixed so that test alert rule works in new edit mode (#23179)
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Remove color prop from icon, remove color implemetation in mono icons
* Update navbar styling
* Move toPascalCase to utils/string
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Update icons in Explore
* Update icons in alerting
* Update + and x buttons
* Update icons in configurations and settings
* Update close icons
* Update icons in rich history
* Update alert messages
* Add optional chaining to for isFontAwesome variable
* Remove icon mock, set up jest.config
* Fix navbar plus icon
* Fir enable-bacground to enableBackgournd
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Merge remote branch origin master to icons-unicons
* Revert "Merge remote branch origin master to icons-unicons"
This reverts commit 3f25d50a39a940883fefe73ce51219139c1ed37f.
* Size-up dashnav icons
* Fix alerting icons, panel headers, update tests
* Fix typecheck error
* Adjustments - add panel icon, spacing
* Set TerserPlugin sourceMap to false to prevent running out of memory when publishing storybook
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2020-04-08 14:33:31 +02:00
|
|
|
New
|
|
|
|
|
</a>
|
2019-04-12 10:40:48 +02:00
|
|
|
</div>
|
2015-04-12 09:42:27 +02:00
|
|
|
|
2017-12-12 11:21:32 +01:00
|
|
|
<div ng-if="ctrl.mode == 'list'">
|
|
|
|
|
<div ng-if="ctrl.dashboard.links.length === 0">
|
@grafana/ui: Create Icon component and replace part of the icons (#23402)
* Part1: Unicons implementation (#23197)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* NewPanelEditor: Fixed so that test alert rule works in new edit mode (#23179)
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Remove color prop from icon, remove color implemetation in mono icons
* Update navbar styling
* Move toPascalCase to utils/string
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Resolve type errors resulted from merge
* Part2: Unicons implementation (#23266)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Implment icons in Tabs
* Implement icons in search items and empty list
* Update buttons
* Update button-related snapshot tests
* Update icons in modals and page headers
* Create anfular wrapper and update all icons on search screen
* Update sizing, remove colors, update snapshot tests
* Remove color prop from icon, remove color implemetation in mono icons
* Remove color props from monochrome icons
* Complete update of icons for search screen
* Update icons for infor tooltips, playlist, permissions
* Support temporarly font awesome icons used in enterprise grafana
* Part1: Unicons implementation (#23197)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* NewPanelEditor: Fixed so that test alert rule works in new edit mode (#23179)
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Remove color prop from icon, remove color implemetation in mono icons
* Update navbar styling
* Move toPascalCase to utils/string
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Icons update
* Add optional chaining to for isFontAwesome variable
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Part3: Unicons implementation (#23356)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Implment icons in Tabs
* Implement icons in search items and empty list
* Update buttons
* Update button-related snapshot tests
* Update icons in modals and page headers
* Create anfular wrapper and update all icons on search screen
* Update sizing, remove colors, update snapshot tests
* Remove color prop from icon, remove color implemetation in mono icons
* Remove color props from monochrome icons
* Complete update of icons for search screen
* Update icons for infor tooltips, playlist, permissions
* Support temporarly font awesome icons used in enterprise grafana
* Part1: Unicons implementation (#23197)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* NewPanelEditor: Fixed so that test alert rule works in new edit mode (#23179)
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Remove color prop from icon, remove color implemetation in mono icons
* Update navbar styling
* Move toPascalCase to utils/string
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Update icons in Explore
* Update icons in alerting
* Update + and x buttons
* Update icons in configurations and settings
* Update close icons
* Update icons in rich history
* Update alert messages
* Add optional chaining to for isFontAwesome variable
* Remove icon mock, set up jest.config
* Fix navbar plus icon
* Fir enable-bacground to enableBackgournd
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Merge remote branch origin master to icons-unicons
* Revert "Merge remote branch origin master to icons-unicons"
This reverts commit 3f25d50a39a940883fefe73ce51219139c1ed37f.
* Size-up dashnav icons
* Fix alerting icons, panel headers, update tests
* Fix typecheck error
* Adjustments - add panel icon, spacing
* Set TerserPlugin sourceMap to false to prevent running out of memory when publishing storybook
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2020-04-08 14:33:31 +02:00
|
|
|
<empty-list-cta
|
|
|
|
|
on-click="ctrl.setupNew"
|
|
|
|
|
title="ctrl.emptyListCta.title"
|
|
|
|
|
buttonIcon="ctrl.emptyListCta.buttonIcon"
|
|
|
|
|
buttonTitle="ctrl.emptyListCta.buttonTitle"
|
|
|
|
|
infoBox="ctrl.emptyListCta.infoBox"
|
|
|
|
|
infoBoxTitle="ctrl.emptyListCta.infoBoxTitle"
|
|
|
|
|
/>
|
2017-12-12 11:21:32 +01:00
|
|
|
</div>
|
2016-02-25 09:28:58 +01:00
|
|
|
|
2017-12-12 11:21:32 +01:00
|
|
|
<div ng-if="ctrl.dashboard.links.length > 0">
|
|
|
|
|
<table class="filter-table filter-table--hover">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>Type</th>
|
2017-12-13 09:44:51 +01:00
|
|
|
<th>Info</th>
|
2017-12-12 11:21:32 +01:00
|
|
|
<th colspan="3"></th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr ng-repeat="link in ctrl.dashboard.links">
|
2017-12-13 09:44:51 +01:00
|
|
|
<td class="pointer" ng-click="ctrl.editLink(link)">
|
2020-04-12 22:20:02 +02:00
|
|
|
<icon name="'external-link-alt'"></icon>
|
2019-04-12 10:40:48 +02:00
|
|
|
{{ link.type }}
|
2017-12-12 11:21:32 +01:00
|
|
|
</td>
|
2017-12-13 09:44:51 +01:00
|
|
|
<td>
|
|
|
|
|
<div ng-if="link.title">
|
2019-04-12 10:40:48 +02:00
|
|
|
{{ link.title }}
|
2017-12-13 09:44:51 +01:00
|
|
|
</div>
|
|
|
|
|
<div ng-if="!link.title && link.url">
|
2019-04-12 10:40:48 +02:00
|
|
|
{{ link.url }}
|
2017-12-13 09:44:51 +01:00
|
|
|
</div>
|
2019-04-12 10:40:48 +02:00
|
|
|
<span
|
|
|
|
|
ng-if="!link.title && link.tags"
|
|
|
|
|
ng-repeat="tag in link.tags"
|
|
|
|
|
tag-color-from-name="tag"
|
|
|
|
|
class="label label-tag"
|
|
|
|
|
style="margin-right: 6px"
|
|
|
|
|
>
|
|
|
|
|
{{ tag }}
|
2017-12-13 09:44:51 +01:00
|
|
|
</span>
|
|
|
|
|
</td>
|
2017-12-12 11:21:32 +01:00
|
|
|
<td style="width: 1%">
|
2020-04-12 22:20:02 +02:00
|
|
|
<icon ng-click="ctrl.moveLink($index, -1)" ng-hide="$first" name="'arrow-up'"></icon>
|
2017-12-12 11:21:32 +01:00
|
|
|
</td>
|
|
|
|
|
<td style="width: 1%">
|
2020-04-12 22:20:02 +02:00
|
|
|
<icon ng-click="ctrl.moveLink($index, 1)" ng-hide="$last" name="'arrow-down'"></icon>
|
2017-12-12 11:21:32 +01:00
|
|
|
</td>
|
|
|
|
|
<td style="width: 1%">
|
2019-04-08 09:48:15 +02:00
|
|
|
<a ng-click="ctrl.deleteLink($index)" class="btn btn-danger btn-small" ng-hide="annotation.builtIn">
|
2020-04-12 22:20:02 +02:00
|
|
|
<icon name="'times'" style="margin-bottom: 0;"></icon>
|
2017-12-12 11:21:32 +01:00
|
|
|
</a>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-02-23 10:25:58 +01:00
|
|
|
|
2017-12-12 11:21:32 +01:00
|
|
|
<div ng-if="ctrl.mode == 'edit' || ctrl.mode == 'new'">
|
2017-12-13 09:44:51 +01:00
|
|
|
<div class="gf-form-group">
|
|
|
|
|
<div class="gf-form-group">
|
2017-12-12 11:21:32 +01:00
|
|
|
<div class="gf-form">
|
|
|
|
|
<span class="gf-form-label width-8">Type</span>
|
|
|
|
|
<div class="gf-form-select-wrapper width-10">
|
2019-04-12 10:40:48 +02:00
|
|
|
<select
|
|
|
|
|
class="gf-form-input"
|
|
|
|
|
ng-model="ctrl.link.type"
|
|
|
|
|
ng-options="f for f in ['dashboards','link']"
|
|
|
|
|
></select>
|
2017-12-12 11:21:32 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2017-12-13 09:44:51 +01:00
|
|
|
<div class="gf-form" ng-show="ctrl.link.type === 'dashboards'">
|
2017-12-12 11:21:32 +01:00
|
|
|
<span class="gf-form-label width-8">With tags</span>
|
2019-04-12 10:40:48 +02:00
|
|
|
<bootstrap-tagsinput
|
|
|
|
|
ng-model="ctrl.link.tags"
|
|
|
|
|
tagclass="label label-tag"
|
|
|
|
|
placeholder="add tags"
|
|
|
|
|
style="margin-right: .25rem"
|
|
|
|
|
></bootstrap-tagsinput>
|
2017-12-12 11:21:32 +01:00
|
|
|
</div>
|
|
|
|
|
|
2019-04-12 10:40:48 +02:00
|
|
|
<gf-form-switch
|
|
|
|
|
ng-show="ctrl.link.type === 'dashboards'"
|
|
|
|
|
class="gf-form"
|
|
|
|
|
label="As dropdown"
|
|
|
|
|
checked="ctrl.link.asDropdown"
|
|
|
|
|
switch-class="max-width-4"
|
|
|
|
|
label-class="width-8"
|
|
|
|
|
></gf-form-switch>
|
2017-12-13 09:44:51 +01:00
|
|
|
<div class="gf-form" ng-show="ctrl.link.type === 'dashboards' && ctrl.link.asDropdown">
|
2017-12-12 11:21:32 +01:00
|
|
|
<span class="gf-form-label width-8">Title</span>
|
2019-04-12 10:40:48 +02:00
|
|
|
<input type="text" ng-model="ctrl.link.title" class="gf-form-input max-width-10" ng-model-onblur />
|
2017-12-12 11:21:32 +01:00
|
|
|
</div>
|
2017-12-13 09:44:51 +01:00
|
|
|
<div ng-show="ctrl.link.type === 'link'">
|
2017-12-12 11:21:32 +01:00
|
|
|
<div class="gf-form">
|
|
|
|
|
<li class="gf-form-label width-8">Url</li>
|
2019-04-12 10:40:48 +02:00
|
|
|
<input type="text" ng-model="ctrl.link.url" class="gf-form-input width-20" ng-model-onblur />
|
2017-12-12 11:21:32 +01:00
|
|
|
</div>
|
2015-05-05 19:56:49 +02:00
|
|
|
|
2017-12-12 11:21:32 +01:00
|
|
|
<div class="gf-form">
|
|
|
|
|
<span class="gf-form-label width-8">Title</span>
|
2019-04-12 10:40:48 +02:00
|
|
|
<input type="text" ng-model="ctrl.link.title" class="gf-form-input width-20" ng-model-onblur />
|
2017-12-12 11:21:32 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="gf-form">
|
|
|
|
|
<span class="gf-form-label width-8">Tooltip</span>
|
2019-04-12 10:40:48 +02:00
|
|
|
<input
|
|
|
|
|
type="text"
|
|
|
|
|
ng-model="ctrl.link.tooltip"
|
|
|
|
|
class="gf-form-input width-20"
|
|
|
|
|
placeholder="Open dashboard"
|
|
|
|
|
ng-model-onblur
|
|
|
|
|
/>
|
2017-12-12 11:21:32 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="gf-form">
|
|
|
|
|
<span class="gf-form-label width-8">Icon</span>
|
|
|
|
|
<div class="gf-form-select-wrapper width-20">
|
2019-04-12 10:40:48 +02:00
|
|
|
<select
|
|
|
|
|
class="gf-form-input"
|
|
|
|
|
ng-model="ctrl.link.icon"
|
|
|
|
|
ng-options="k as k for (k, v) in ctrl.iconMap"
|
|
|
|
|
></select>
|
2017-12-12 11:21:32 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2017-12-13 09:44:51 +01:00
|
|
|
<div class="gf-form-group">
|
|
|
|
|
<h5 class="section-heading">Include</h5>
|
2017-12-12 11:21:32 +01:00
|
|
|
<div>
|
2019-04-12 10:40:48 +02:00
|
|
|
<gf-form-switch
|
|
|
|
|
class="gf-form"
|
|
|
|
|
label="Time range"
|
|
|
|
|
checked="ctrl.link.keepTime"
|
|
|
|
|
switch-class="max-width-6"
|
|
|
|
|
label-class="width-9"
|
|
|
|
|
></gf-form-switch>
|
|
|
|
|
<gf-form-switch
|
|
|
|
|
class="gf-form"
|
|
|
|
|
label="Variable values"
|
|
|
|
|
checked="ctrl.link.includeVars"
|
|
|
|
|
switch-class="max-width-6"
|
|
|
|
|
label-class="width-9"
|
|
|
|
|
></gf-form-switch>
|
|
|
|
|
<gf-form-switch
|
|
|
|
|
class="gf-form"
|
|
|
|
|
label="Open in new tab"
|
|
|
|
|
checked="ctrl.link.targetBlank"
|
|
|
|
|
switch-class="max-width-6"
|
|
|
|
|
label-class="width-9"
|
|
|
|
|
></gf-form-switch>
|
2017-12-12 11:21:32 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2019-02-05 12:05:02 +01:00
|
|
|
<button class="btn btn-primary" ng-if="ctrl.mode == 'new'" ng-click="ctrl.addLink()">
|
2017-12-13 09:44:51 +01:00
|
|
|
Add
|
|
|
|
|
</button>
|
2019-02-05 12:05:02 +01:00
|
|
|
<button class="btn btn-primary" ng-if="ctrl.mode == 'edit'" ng-click="ctrl.saveLink()">
|
2017-12-13 09:44:51 +01:00
|
|
|
Update
|
|
|
|
|
</button>
|
2017-12-12 11:21:32 +01:00
|
|
|
</div>
|