Disable logout button in call
This commit is contained in:
parent
b6ee7cfefc
commit
3fd90915d8
3 changed files with 7 additions and 5 deletions
|
|
@ -30,10 +30,12 @@
|
||||||
|
|
||||||
.menuItem.focused:first-child,
|
.menuItem.focused:first-child,
|
||||||
.menuItem:hover:first-child {
|
.menuItem:hover:first-child {
|
||||||
border-radius: 8px 8px 0 0;
|
border-top-left-radius: 8px;
|
||||||
|
border-top-right-radius: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menuItem.focused:last-child,
|
.menuItem.focused:last-child,
|
||||||
.menuItem:hover:last-child {
|
.menuItem:hover:last-child {
|
||||||
border-radius: 0 0 8px 8px;
|
border-bottom-left-radius: 8px;
|
||||||
|
border-bottom-right-radius: 8px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -438,7 +438,7 @@ function InRoomView({
|
||||||
</LeftNav>
|
</LeftNav>
|
||||||
<RightNav>
|
<RightNav>
|
||||||
<GridLayoutMenu layout={layout} setLayout={setLayout} />
|
<GridLayoutMenu layout={layout} setLayout={setLayout} />
|
||||||
<UserMenu />
|
<UserMenu disableLogout />
|
||||||
</RightNav>
|
</RightNav>
|
||||||
</Header>
|
</Header>
|
||||||
{items.length === 0 ? (
|
{items.length === 0 ? (
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ import { useModalTriggerState } from "./Modal";
|
||||||
import { ProfileModal } from "./ProfileModal";
|
import { ProfileModal } from "./ProfileModal";
|
||||||
import { Tooltip, TooltipTrigger } from "./Tooltip";
|
import { Tooltip, TooltipTrigger } from "./Tooltip";
|
||||||
|
|
||||||
export function UserMenu() {
|
export function UserMenu({ disableLogout }) {
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
const { isAuthenticated, isGuest, logout, userName, client } = useClient();
|
const { isAuthenticated, isGuest, logout, userName, client } = useClient();
|
||||||
|
|
@ -64,7 +64,7 @@ export function UserMenu() {
|
||||||
icon: LoginIcon,
|
icon: LoginIcon,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
} else {
|
} else if (!disableLogout) {
|
||||||
arr.push({
|
arr.push({
|
||||||
key: "logout",
|
key: "logout",
|
||||||
label: "Sign Out",
|
label: "Sign Out",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue