mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Grafana: Create new playlist/dashboard/channel card is not visible when there are no items in the list (#18890)
This commit is contained in:
@@ -114,14 +114,14 @@
|
||||
</div>
|
||||
|
||||
<div ng-if="ctrl.canSave && ctrl.folderId && !ctrl.hasFilters && ctrl.sections.length === 0">
|
||||
<empty-list-cta model="{
|
||||
title: 'This folder doesn\'t have any dashboards yet',
|
||||
buttonIcon: 'gicon gicon-dashboard-new',
|
||||
buttonLink: 'dashboard/new?folderId={{ctrl.folderId}}',
|
||||
buttonTitle: 'Create Dashboard',
|
||||
proTip: 'Add/move dashboards to your folder at ->',
|
||||
proTipLink: 'dashboards',
|
||||
proTipLinkTitle: 'Manage dashboards',
|
||||
proTipTarget: ''
|
||||
}" />
|
||||
<empty-list-cta
|
||||
title="'This folder doesn\'t have any dashboards yet'"
|
||||
buttonIcon="'gicon gicon-dashboard-new'"
|
||||
buttonLink="'dashboard/new?folderId={{ctrl.folderId}}'"
|
||||
buttonTitle="'Create Dashboard'"
|
||||
proTip="'Add/move dashboards to your folder at ->'"
|
||||
proTipLink="'dashboards'"
|
||||
proTipLinkTitle="'Manage dashboards'"
|
||||
proTipTarget=""
|
||||
/>
|
||||
</div>
|
||||
|
@@ -45,15 +45,15 @@
|
||||
</table>
|
||||
</div>
|
||||
<div ng-if="ctrl.notifications.length === 0">
|
||||
<empty-list-cta model="{
|
||||
title: 'There are no notification channels defined yet',
|
||||
buttonIcon: 'gicon gicon-alert-notification-channel',
|
||||
buttonLink: 'alerting/notification/new',
|
||||
buttonTitle: 'Add channel',
|
||||
proTip: 'You can include images in your alert notifications.',
|
||||
proTipLink: 'http://docs.grafana.org/alerting/notifications/',
|
||||
proTipLinkTitle: 'Learn more',
|
||||
proTipTarget: '_blank'
|
||||
}" />
|
||||
<empty-list-cta
|
||||
title= "'There are no notification channels defined yet'"
|
||||
buttonIcon= "'gicon gicon-alert-notification-channel'"
|
||||
buttonLink= "'alerting/notification/new'"
|
||||
buttonTitle= "'Add channel'"
|
||||
proTip= "'You can include images in your alert notifications.'"
|
||||
proTipLink= "'http://docs.grafana.org/alerting/notifications/'"
|
||||
proTipLinkTitle= "'Learn more'"
|
||||
proTipTarget= "'_blank'"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -53,15 +53,14 @@
|
||||
</table>
|
||||
</div>
|
||||
<div ng-if="ctrl.playlists.length === 0">
|
||||
<empty-list-cta model="{
|
||||
title: 'There are no playlists created yet',
|
||||
buttonIcon: 'fa fa-plus',
|
||||
buttonLink: 'playlists/create',
|
||||
buttonTitle: ' Create Playlist',
|
||||
proTip: 'You can use playlists to cycle dashboards on TVs without user control',
|
||||
proTipLink: 'http://docs.grafana.org/reference/playlist/',
|
||||
proTipLinkTitle: 'Learn more',
|
||||
proTipTarget: '_blank'
|
||||
}" />
|
||||
<empty-list-cta
|
||||
title="'There are no playlists created yet'"
|
||||
buttonIcon="'fa fa-plus'"
|
||||
buttonLink="'playlists/create'"
|
||||
buttonTitle="'Create Playlist'"
|
||||
proTip="'You can use playlists to cycle dashboards on TVs without user control'"
|
||||
proTipLink="'http://docs.grafana.org/reference/playlist/'"
|
||||
proTipLinkTitle="'Learn more'"
|
||||
proTipTarget="'_blank'" />
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user