diff --git a/frontend/src/metabase/nav/components/ProfileLink.jsx b/frontend/src/metabase/nav/components/ProfileLink.jsx index c1d20856067c175197040a72f006325cd05831ef..1beb9cb7576b9bbc261c91757da435226f5bf695 100644 --- a/frontend/src/metabase/nav/components/ProfileLink.jsx +++ b/frontend/src/metabase/nav/components/ProfileLink.jsx @@ -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> - */ ); } }