diff --git a/public/app/core/components/PageHeader.tsx b/public/app/core/components/PageHeader.tsx index 7ed72d41b84..e0accc03fd4 100644 --- a/public/app/core/components/PageHeader.tsx +++ b/public/app/core/components/PageHeader.tsx @@ -6,27 +6,6 @@ export interface IProps { model: NavModel; } -// function BreadcrumbItem(item: NavModelItem) { -// return ( -// -// {item.text} -// -// ); -// } -// -// function Breadcrumb(model: NavModel) { -// return ( -//
-//
-// -// -// -// {model.breadcrumbs.map(BreadcrumbItem)} -//
-//
-// ); -// } - function TabItem(tab: NavModelItem) { if (tab.hideFromTabs) { return (null); @@ -84,7 +63,6 @@ export default class PageHeader extends React.Component {
{this.renderHeaderTitle(this.props.model.main)} - {this.props.model.main.children && }
diff --git a/public/app/core/routes/dashboard_loaders.ts b/public/app/core/routes/dashboard_loaders.ts index 0512a3394ab..bacd387456e 100644 --- a/public/app/core/routes/dashboard_loaders.ts +++ b/public/app/core/routes/dashboard_loaders.ts @@ -36,12 +36,11 @@ export class NewDashboardCtrl { meta: { canStar: false, canShare: false, isNew: true }, dashboard: { title: "New dashboard", - rows: [ + panels: [ { - title: 'Dashboard Row', - height: '350px', - panels: [], - isNew: true, + type: 'add-panel', + gridPos: {x: 0, y: 0, w: 12, h: 9}, + title: 'Panel Title', } ] }, diff --git a/public/app/features/dashboard/dashgrid/AddPanelPanel.tsx b/public/app/features/dashboard/dashgrid/AddPanelPanel.tsx index 8415d9c14b2..0dd4b9fcad6 100644 --- a/public/app/features/dashboard/dashgrid/AddPanelPanel.tsx +++ b/public/app/features/dashboard/dashgrid/AddPanelPanel.tsx @@ -72,8 +72,18 @@ export class AddPanelPanel extends React.Component -
{this.state.panelPlugins.map(this.renderPanelItem.bind(this))}
+
+
+ + New Panel + Select a visualization +
+
+ {this.state.panelPlugins.map(this.renderPanelItem.bind(this))} +
+
); } } + diff --git a/public/app/features/dashboard/dashnav/dashnav.html b/public/app/features/dashboard/dashnav/dashnav.html index 0dc1bdfb308..260a3783a67 100644 --- a/public/app/features/dashboard/dashnav/dashnav.html +++ b/public/app/features/dashboard/dashnav/dashnav.html @@ -20,7 +20,7 @@ -