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.
This commit is contained in:
Daniel Lee 2017-12-13 16:28:36 +01:00
parent f18eeaa920
commit 7d0ca63b72
2 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,7 @@ function TabItem(tab: NavModelItem) {
return (
<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} />
{tab.text}
</a>

View File

@ -12,6 +12,7 @@ export interface NavModelItem {
hideFromTabs?: boolean;
divider?: boolean;
children: NavModelItem[];
target?: string;
}
export class NavModel {