mirror of
https://gitlab.com/openlp/web-remote.git
synced 2024-12-22 11:32:47 +00:00
Show tooltips
This commit is contained in:
parent
4ebbba85e7
commit
a1db0af862
@ -19,28 +19,28 @@
|
|||||||
</main>
|
</main>
|
||||||
<footer>
|
<footer>
|
||||||
<mat-toolbar class="footer">
|
<mat-toolbar class="footer">
|
||||||
<button mat-icon-button (click)="previousItem()">
|
<button mat-icon-button (click)="previousItem()" matTooltip="Previous item">
|
||||||
<mat-icon>first_page</mat-icon>
|
<mat-icon>first_page</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<button mat-icon-button (click)="nextItem()">
|
<button mat-icon-button (click)="nextItem()" matTooltip="Next item">
|
||||||
<mat-icon>last_page</mat-icon>
|
<mat-icon>last_page</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<button mat-icon-button (click)="previousSlide()">
|
<button mat-icon-button (click)="previousSlide()" matTooltip="Previous slide">
|
||||||
<mat-icon>navigate_before</mat-icon>
|
<mat-icon>navigate_before</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<button mat-icon-button (click)="nextSlide()">
|
<button mat-icon-button (click)="nextSlide()" matTooltip="Next slide">
|
||||||
<mat-icon>navigate_next</mat-icon>
|
<mat-icon>navigate_next</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<button mat-icon-button (click)="blankDisplay()" class="displayButton" [class.active]="state.blank" [disabled]="state.blank">
|
<button mat-icon-button (click)="blankDisplay()" class="displayButton" [class.active]="state.blank" [disabled]="state.blank" matTooltip="Show black">
|
||||||
<mat-icon>videocam_off</mat-icon>
|
<mat-icon>videocam_off</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<button mat-icon-button (click)="themeDisplay()" class="displayButton" [class.active]="state.theme" [disabled]="state.theme">
|
<button mat-icon-button (click)="themeDisplay()" class="displayButton" [class.active]="state.theme" [disabled]="state.theme" matTooltip="Show background">
|
||||||
<mat-icon>wallpaper</mat-icon>
|
<mat-icon>wallpaper</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<button mat-icon-button (click)="desktopDisplay()" class="displayButton" [class.active]="state.display" [disabled]="state.display">
|
<button mat-icon-button (click)="desktopDisplay()" class="displayButton" [class.active]="state.display" [disabled]="state.display" matTooltip="Show Desktop">
|
||||||
<mat-icon>desktop_windows</mat-icon>
|
<mat-icon>desktop_windows</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<button mat-icon-button (click)="showDisplay()" class="displayButton" [class.active]="state.display" [disabled]="state.live()">
|
<button mat-icon-button (click)="showDisplay()" class="displayButton" [class.active]="state.display" [disabled]="state.live()" matTooltip="Show Presentation">
|
||||||
<mat-icon>videocam</mat-icon>
|
<mat-icon>videocam</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
</mat-toolbar>
|
</mat-toolbar>
|
||||||
|
@ -1,27 +0,0 @@
|
|||||||
import { TestBed, async } from '@angular/core/testing';
|
|
||||||
import { AppComponent } from './app.component';
|
|
||||||
describe('AppComponent', () => {
|
|
||||||
beforeEach(async(() => {
|
|
||||||
TestBed.configureTestingModule({
|
|
||||||
declarations: [
|
|
||||||
AppComponent
|
|
||||||
],
|
|
||||||
}).compileComponents();
|
|
||||||
}));
|
|
||||||
it('should create the app', async(() => {
|
|
||||||
const fixture = TestBed.createComponent(AppComponent);
|
|
||||||
const app = fixture.debugElement.componentInstance;
|
|
||||||
expect(app).toBeTruthy();
|
|
||||||
}));
|
|
||||||
it(`should have as title 'app'`, async(() => {
|
|
||||||
const fixture = TestBed.createComponent(AppComponent);
|
|
||||||
const app = fixture.debugElement.componentInstance;
|
|
||||||
expect(app.title).toEqual('app');
|
|
||||||
}));
|
|
||||||
it('should render title in a h1 tag', async(() => {
|
|
||||||
const fixture = TestBed.createComponent(AppComponent);
|
|
||||||
fixture.detectChanges();
|
|
||||||
const compiled = fixture.debugElement.nativeElement;
|
|
||||||
expect(compiled.querySelector('h1').textContent).toContain('Welcome to app!');
|
|
||||||
}));
|
|
||||||
});
|
|
@ -12,6 +12,7 @@ import {MatFormFieldModule} from '@angular/material/form-field';
|
|||||||
import {MatSelectModule} from '@angular/material/select';
|
import {MatSelectModule} from '@angular/material/select';
|
||||||
import {MatButtonModule} from '@angular/material/button';
|
import {MatButtonModule} from '@angular/material/button';
|
||||||
import {MatInputModule} from '@angular/material';
|
import {MatInputModule} from '@angular/material';
|
||||||
|
import {MatTooltipModule} from '@angular/material/tooltip';
|
||||||
|
|
||||||
|
|
||||||
import { AppComponent } from './app.component';
|
import { AppComponent } from './app.component';
|
||||||
@ -46,7 +47,8 @@ import { FormsModule } from '@angular/forms';
|
|||||||
MatFormFieldModule,
|
MatFormFieldModule,
|
||||||
MatSelectModule,
|
MatSelectModule,
|
||||||
MatButtonModule,
|
MatButtonModule,
|
||||||
MatInputModule
|
MatInputModule,
|
||||||
|
MatTooltipModule
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
OpenLPService
|
OpenLPService
|
||||||
|
@ -41,11 +41,11 @@ export class OpenLPService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getItemSlides(): Observable<Slide[]> {
|
getItemSlides(): Observable<Slide[]> {
|
||||||
return this.http.get<Slide[]>('http://localhost:4316/controller/live/text');
|
return this.http.get<Slide[]>(`${this.apiURL}/controller/live/text`);
|
||||||
}
|
}
|
||||||
|
|
||||||
getServiceItems(): Observable<ServiceItem[]> {
|
getServiceItems(): Observable<ServiceItem[]> {
|
||||||
return this.http.get<ServiceItem[]>('http://localhost:4316/service/list');
|
return this.http.get<ServiceItem[]>(`${this.apiURL}/service/list`);
|
||||||
}
|
}
|
||||||
|
|
||||||
sendItemLive(plugin, id) {}
|
sendItemLive(plugin, id) {}
|
||||||
|
Loading…
Reference in New Issue
Block a user