Commit 7d0ca63b by Daniel Lee

navmodel: fix for signout link on pref page

without a target property on the link, the signout tab on
the preferences page returned a 404.
parent f18eeaa9
...@@ -19,7 +19,7 @@ function TabItem(tab: NavModelItem) { ...@@ -19,7 +19,7 @@ function TabItem(tab: NavModelItem) {
return ( return (
<li className="gf-tabs-item" key={tab.url}> <li className="gf-tabs-item" key={tab.url}>
<a className={tabClasses} href={tab.url}> <a className={tabClasses} target={tab.target} href={tab.url}>
<i className={tab.icon} /> <i className={tab.icon} />
{tab.text} {tab.text}
</a> </a>
......
...@@ -12,6 +12,7 @@ export interface NavModelItem { ...@@ -12,6 +12,7 @@ export interface NavModelItem {
hideFromTabs?: boolean; hideFromTabs?: boolean;
divider?: boolean; divider?: boolean;
children: NavModelItem[]; children: NavModelItem[];
target?: string;
} }
export class NavModel { export class NavModel {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment