Fix brand name stuff in AppLayout

This commit is contained in:
Marquis Kurt 2019-04-29 14:38:28 -04:00
parent 3f62066b8c
commit 80a59081e9
1 changed files with 4 additions and 4 deletions

View File

@ -177,10 +177,10 @@ export class AppLayout extends Component<any, IAppLayoutState> {
<Typography className={classes.titleBarText}>Careful: you're running in developer mode.</Typography>
</div>
);
} else if ((navigator.userAgent.includes("Hyperspace") || navigator.userAgent.includes("Electron")) && navigator.userAgent.includes("Macintosh")) {
} else if ((navigator.userAgent.includes(this.state.brandName || "Hyperspace") || navigator.userAgent.includes("Electron")) && navigator.userAgent.includes("Macintosh")) {
return (
<div className={classes.titleBarRoot}>
<Typography className={classes.titleBarText}>Hyperspace</Typography>
<Typography className={classes.titleBarText}>{this.state.brandName? this.state.brandName: "Hyperspace"}</Typography>
</div>
);
}
@ -376,10 +376,10 @@ export class AppLayout extends Component<any, IAppLayoutState> {
open={this.state.logOutOpen}
onClose={() => this.toggleLogOutDialog()}
>
<DialogTitle id="alert-dialog-title">Log out of Hyperspace?</DialogTitle>
<DialogTitle id="alert-dialog-title">Log out of {this.state.brandName? this.state.brandName: "Hyperspace"}</DialogTitle>
<DialogContent>
<DialogContentText id="alert-dialog-description">
You'll need to remove Hyperspace from your list of authorized apps and log in again if you want to use Hyperspace.
You'll need to remove {this.state.brandName? this.state.brandName: "Hyperspace"} from your list of authorized apps and log in again if you want to use {this.state.brandName? this.state.brandName: "Hyperspace"}.
</DialogContentText>
</DialogContent>
<DialogActions>