mirror of https://gitlab.com/openlp/web-remote.git
Compare commits
6 Commits
816ea674fe
...
3ab305f2bc
Author | SHA1 | Date |
---|---|---|
Raoul Snyman | 3ab305f2bc | |
Chris Witterholt | a6b4ea23c8 | |
Chris Witterholt | 75c11d4543 | |
Chris Witterholt | ece665dbf2 | |
Chris Witterholt | b62f21bae0 | |
Raoul Snyman | 4ae8667945 |
|
@ -33,7 +33,7 @@ test:
|
||||||
build-branch:
|
build-branch:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- yarn install
|
- yarn install --production
|
||||||
- yarn build --no-progress --configuration production --aot
|
- yarn build --no-progress --configuration production --aot
|
||||||
- export APP_VERSION=`git describe --dirty --tags --long --match '*[0-9]*'`
|
- export APP_VERSION=`git describe --dirty --tags --long --match '*[0-9]*'`
|
||||||
- 'echo "window.appVersion = \"$APP_VERSION\";" > dist/web-remote/assets/version.js'
|
- 'echo "window.appVersion = \"$APP_VERSION\";" > dist/web-remote/assets/version.js'
|
||||||
|
@ -46,7 +46,7 @@ build-branch:
|
||||||
build-tag:
|
build-tag:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- yarn install
|
- yarn install --production
|
||||||
- yarn build --no-progress --configuration production --aot
|
- yarn build --no-progress --configuration production --aot
|
||||||
- 'echo "window.appVersion = \"$CI_COMMIT_TAG\";" > dist/web-remote/assets/version.js'
|
- 'echo "window.appVersion = \"$CI_COMMIT_TAG\";" > dist/web-remote/assets/version.js'
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|
|
@ -154,7 +154,7 @@
|
||||||
@else if (state.display) {
|
@else if (state.display) {
|
||||||
<mat-icon>desktop_windows</mat-icon>
|
<mat-icon>desktop_windows</mat-icon>
|
||||||
}
|
}
|
||||||
@else if (state.live) {
|
@else if (state.live()) {
|
||||||
<mat-icon>videocam</mat-icon>
|
<mat-icon>videocam</mat-icon>
|
||||||
}
|
}
|
||||||
</button>
|
</button>
|
||||||
|
@ -193,7 +193,7 @@
|
||||||
(click)="showDisplay()"
|
(click)="showDisplay()"
|
||||||
class="displayButton"
|
class="displayButton"
|
||||||
[class.active]="state.display"
|
[class.active]="state.display"
|
||||||
[disabled]="state.live"
|
[disabled]="state.live()"
|
||||||
matTooltip="{{ 'SHOW_PRESENTATION' | translate }}"
|
matTooltip="{{ 'SHOW_PRESENTATION' | translate }}"
|
||||||
matTooltipPosition="above">
|
matTooltipPosition="above">
|
||||||
<mat-icon>videocam</mat-icon>
|
<mat-icon>videocam</mat-icon>
|
||||||
|
@ -242,7 +242,7 @@
|
||||||
@else if (state.display) {
|
@else if (state.display) {
|
||||||
<mat-icon>desktop_windows</mat-icon>
|
<mat-icon>desktop_windows</mat-icon>
|
||||||
}
|
}
|
||||||
@else if (state.live) {
|
@else if (state.live()) {
|
||||||
<mat-icon>videocam</mat-icon>
|
<mat-icon>videocam</mat-icon>
|
||||||
}
|
}
|
||||||
</button>
|
</button>
|
||||||
|
@ -278,7 +278,7 @@
|
||||||
mat-icon-button (click)="showDisplay()"
|
mat-icon-button (click)="showDisplay()"
|
||||||
class="displayButton"
|
class="displayButton"
|
||||||
[class.active]="state.display"
|
[class.active]="state.display"
|
||||||
[disabled]="state.live"
|
[disabled]="state.live()"
|
||||||
matTooltip="{{ 'SHOW_PRESENTATION' | translate }}"
|
matTooltip="{{ 'SHOW_PRESENTATION' | translate }}"
|
||||||
matTooltipPosition="above">
|
matTooltipPosition="above">
|
||||||
<mat-icon>videocam</mat-icon>
|
<mat-icon>videocam</mat-icon>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { MatDialogRef } from '@angular/material/dialog';
|
import { MatDialogRef } from '@angular/material/dialog';
|
||||||
import { MatSnackBar } from '@angular/material/snack-bar';
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
||||||
import { TranslateService } from '@ngx-translate/core';
|
import { TranslateService } from '@ngx-translate/core';
|
||||||
|
@ -10,7 +10,7 @@ import { OpenLPService } from '../../openlp.service';
|
||||||
templateUrl: './login.component.html',
|
templateUrl: './login.component.html',
|
||||||
styleUrl: './login.component.scss'
|
styleUrl: './login.component.scss'
|
||||||
})
|
})
|
||||||
export class LoginComponent implements OnInit {
|
export class LoginComponent {
|
||||||
username: string;
|
username: string;
|
||||||
password: string;
|
password: string;
|
||||||
loginSucceededMessage: string;
|
loginSucceededMessage: string;
|
||||||
|
@ -29,17 +29,13 @@ export class LoginComponent implements OnInit {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
// Do nothing
|
|
||||||
}
|
|
||||||
|
|
||||||
performLogin() {
|
performLogin() {
|
||||||
this.openlpService.login({username: this.username, password: this.password}).subscribe(
|
this.openlpService.login({ username: this.username, password: this.password }).subscribe({
|
||||||
result => {
|
next: result => {
|
||||||
this.snackBar.open(this.loginSucceededMessage, '', {duration: 2000});
|
this.snackBar.open(this.loginSucceededMessage, '', { duration: 2000 });
|
||||||
this.dialogRef.close(result);
|
this.dialogRef.close(result);
|
||||||
},
|
},
|
||||||
() => this.snackBar.open(this.loginFailedMessage, '', {duration: 2000})
|
error: () => this.snackBar.open(this.loginFailedMessage, '', { duration: 2000 })
|
||||||
);
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue