1
0
mirror of https://github.com/hyperspacedev/hyperspace synced 2025-02-09 16:28:43 +01:00

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

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> <Typography className={classes.titleBarText}>Careful: you're running in developer mode.</Typography>
</div> </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 ( return (
<div className={classes.titleBarRoot}> <div className={classes.titleBarRoot}>
<Typography className={classes.titleBarText}>Hyperspace</Typography> <Typography className={classes.titleBarText}>{this.state.brandName? this.state.brandName: "Hyperspace"}</Typography>
</div> </div>
); );
} }
@ -376,10 +376,10 @@ export class AppLayout extends Component<any, IAppLayoutState> {
open={this.state.logOutOpen} open={this.state.logOutOpen}
onClose={() => this.toggleLogOutDialog()} 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> <DialogContent>
<DialogContentText id="alert-dialog-description"> <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> </DialogContentText>
</DialogContent> </DialogContent>
<DialogActions> <DialogActions>