Skip to content
Snippets Groups Projects
Unverified Commit 76c37272 authored by Kyle Doherty's avatar Kyle Doherty
Browse files

clean up profile link

parent d4eba26c
No related branches found
No related tags found
No related merge requests found
......@@ -134,99 +134,6 @@ export default class ProfileLink extends Component {
</Modal>
) : null}
</Box>
/*
<PopoverWithTrigger
triggerElement={
<a
data-metabase-event={"Navbar;Profile Dropdown;Toggle"}
className="flex align-center p2 transition-background"
onClick={this.toggleDropdown}
>
</a>
}
>
<div>
<ul>
{!user.google_auth && !user.ldap_auth ? (
<li>
<Link
to="/user/edit_current"
data-metabase-event={
"Navbar;Profile Dropdown;Edit Profile"
}
onClick={this.closeDropdown}
className="Dropdown-item block no-decoration"
>
{t`Account Settings`}
</Link>
</li>
) : null}
{user.is_superuser && context !== "admin" ? (
<li>
<Link
to="/admin"
data-metabase-event={
"Navbar;Profile Dropdown;Enter Admin"
}
onClick={this.closeDropdown}
className="Dropdown-item block no-decoration"
>
{t`Admin Panel`}
</Link>
</li>
) : null}
{user.is_superuser && context === "admin" ? (
<li>
<Link
to="/"
data-metabase-event={"Navbar;Profile Dropdown;Exit Admin"}
onClick={this.closeDropdown}
className="Dropdown-item block no-decoration"
>
{t`Exit Admin`}
</Link>
</li>
) : null}
<li>
<a
data-metabase-event={"Navbar;Profile Dropdown;Help " + tag}
className="Dropdown-item block no-decoration"
href={"http://www.metabase.com/docs/" + tag}
target="_blank"
>
{t`Help`}
</a>
</li>
{user.is_superuser && (
<a
data-metabase-event={
"Navbar;Profile Dropdown;Debugging " + tag
}
onClick={this.openModal.bind(this, "logs")}
className="Dropdown-item block no-decoration"
>
{t`Logs`}
</a>
<a
data-metabase-event={"Navbar;Profile Dropdown;About " + tag}
onClick={this.openModal.bind(this, "about")}
className="Dropdown-item block no-decoration"
>
{t`About Metabase`}
</a>
<Link
to="/auth/logout"
data-metabase-event={"Navbar;Profile Dropdown;Logout"}
>
{t`Sign out`}
</Link>
*/
);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment