summaryrefslogtreecommitdiffstats
path: root/ui/src/components/navbar.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-03-04 22:35:55 -0500
committerDessalines <tyhou13@gmx.com>2020-03-04 22:35:55 -0500
commitc999579c05ded42ea6ec68753d59b288123cc652 (patch)
tree831ce316ebdbd9c113dde3a5c7b29c53760ddbae /ui/src/components/navbar.tsx
parentd14504763a90d9cc1bf91229ca0dde28a92a6bbc (diff)
Better tippy loading. Fixes #577
Diffstat (limited to 'ui/src/components/navbar.tsx')
-rw-r--r--ui/src/components/navbar.tsx7
1 files changed, 1 insertions, 6 deletions
diff --git a/ui/src/components/navbar.tsx b/ui/src/components/navbar.tsx
index 031c2ecb..ef3f8430 100644
--- a/ui/src/components/navbar.tsx
+++ b/ui/src/components/navbar.tsx
@@ -26,7 +26,6 @@ import {
fetchLimit,
isCommentType,
toast,
- setupTippy,
} from '../utils';
import { version } from '../version';
import { i18n } from '../i18next';
@@ -85,10 +84,6 @@ export class Navbar extends Component<any, NavbarState> {
WebSocketService.Instance.getSite();
}
- componentDidMount() {
- setupTippy();
- }
-
render() {
return this.navbar();
}
@@ -283,7 +278,7 @@ export class Navbar extends Component<any, NavbarState> {
} else if (res.op == UserOperation.GetSite) {
let data = res.data as GetSiteResponse;
- if (data.site) {
+ if (data.site && !this.state.siteName) {
this.state.siteName = data.site.name;
WebSocketService.Instance.site = data.site;
this.setState(this.state);