mirror of
https://gitlab.com/openlp/web-remote.git
synced 2024-12-22 03:22:48 +00:00
Merge branch 'fix-login' into 'master'
Reinserting the login button Closes #34 See merge request openlp/web-remote!59
This commit is contained in:
commit
d29eddb781
@ -3,6 +3,7 @@
|
||||
<button mat-icon-button (click)="menu.toggle()"><mat-icon>menu</mat-icon></button>
|
||||
<span class="page-title">{{pageTitle}}</span>
|
||||
<span class="spacer"></span>
|
||||
<button *ngIf="showLogin" mat-button (click)="login()">Login</button>
|
||||
<button
|
||||
mat-icon-button
|
||||
(click)="forceWebSocketReconnection()"
|
||||
|
@ -23,10 +23,13 @@ export class HotKeysService {
|
||||
|
||||
return new Observable(observer => {
|
||||
const handler = (e: KeyboardEvent) => {
|
||||
if (document.URL.endsWith('/slides'))
|
||||
{
|
||||
e.preventDefault();
|
||||
observer.next(e);
|
||||
const activeElement = this.document.activeElement;
|
||||
const notOnInput = activeElement?.tagName !== 'INPUT' && activeElement?.tagName !== 'TEXTAREA';
|
||||
if (notOnInput) {
|
||||
if (document.URL.endsWith('/slides')) {
|
||||
e.preventDefault();
|
||||
observer.next(e);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user