Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 84997f67

Přidáno uživatelem Ondřej Váně před asi 4 roky(ů)

Re #7818: About dialog

- přidán angular material dialog
- přidán globální styl pro zobrazení dialogu
- zobrazení verzí aplikace (FE, BE a Solru)
- verze jsou zatím natvrdo napsány
- zakomentování testů, které rozbíjeli build

Zobrazit rozdíly:

fe/fulltextsearch/src/app/components/layout/header/header.component.ts
1 1
import { Component, OnInit } from '@angular/core';
2
import { MatDialog } from '@angular/material/dialog';
3
import { AboutDialogComponent } from '../../shared-components/about-dialog/about-dialog.component';
2 4

  
3 5
@Component({
4 6
  selector: 'app-header',
......
7 9
})
8 10
export class HeaderComponent implements OnInit {
9 11

  
10
  constructor() { }
12
  constructor( public dialog: MatDialog ) { }
11 13

  
12 14
  ngOnInit() {
13 15
  }
14 16

  
17
  openAboutDialog() {
18
    this.dialog.open(AboutDialogComponent, { panelClass: 'custom-dialog-container' });
19
  }
20

  
15 21
}

Také k dispozici: Unified diff