mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Playlist: Split PlaylistItem into standalone TS type (#56343)
* playlist: Split PlaylistItem into standalone TS type * update playlist model * actually set the title Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { PlaylistItem as PlaylistItemFromSchema } from '@grafana/schema/src/raw/playlist/x/playlist.gen';
|
||||
|
||||
import { DashboardQueryResult } from '../search/service';
|
||||
|
||||
export type PlaylistMode = boolean | 'tv';
|
||||
@@ -16,10 +18,7 @@ export interface Playlist {
|
||||
items?: PlaylistItem[];
|
||||
}
|
||||
|
||||
export interface PlaylistItem {
|
||||
type: 'dashboard_by_tag' | 'dashboard_by_uid' | 'dashboard_by_id'; // _by_id is deprecated
|
||||
value: string; // tag or uid
|
||||
|
||||
export interface PlaylistItem extends PlaylistItemFromSchema {
|
||||
// Loaded in the frontend
|
||||
dashboards?: DashboardQueryResult[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user