angular update 14.1.2
This commit is contained in:
@@ -3,7 +3,7 @@ import {ShowDataService} from '../services/show-data.service';
|
||||
import {Observable} from 'rxjs';
|
||||
import {Show} from '../services/show';
|
||||
import {ShowService} from '../services/show.service';
|
||||
import {FormControl, FormGroup, Validators} from '@angular/forms';
|
||||
import {UntypedFormControl, UntypedFormGroup, Validators} from '@angular/forms';
|
||||
import {Router} from '@angular/router';
|
||||
import {faSave} from '@fortawesome/free-solid-svg-icons';
|
||||
|
||||
@@ -16,9 +16,9 @@ export class NewComponent implements OnInit {
|
||||
public shows$: Observable<Show[]>;
|
||||
public showTypePublic = ShowService.SHOW_TYPE_PUBLIC;
|
||||
public showTypePrivate = ShowService.SHOW_TYPE_PRIVATE;
|
||||
public form: FormGroup = new FormGroup({
|
||||
date: new FormControl(null, Validators.required),
|
||||
showType: new FormControl(null, Validators.required),
|
||||
public form: UntypedFormGroup = new UntypedFormGroup({
|
||||
date: new UntypedFormControl(null, Validators.required),
|
||||
showType: new UntypedFormControl(null, Validators.required),
|
||||
});
|
||||
public faSave = faSave;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import {Component, Input, OnInit} from '@angular/core';
|
||||
import {ShowSongService} from '../../services/show-song.service';
|
||||
import {ShowSong} from '../../services/show-song';
|
||||
import {getScale} from '../../../songs/services/key.helper';
|
||||
import {FormControl} from '@angular/forms';
|
||||
import {UntypedFormControl} from '@angular/forms';
|
||||
import {ChordMode} from '../../../../widget-modules/components/song-text/song-text.component';
|
||||
import {Show} from '../../services/show';
|
||||
import {faEraser, faPenToSquare, faSave, faTrash} from '@fortawesome/free-solid-svg-icons';
|
||||
@@ -25,10 +25,10 @@ export class SongComponent implements OnInit {
|
||||
public faEdit = faPenToSquare;
|
||||
public faSave = faSave;
|
||||
public faEraser = faEraser;
|
||||
public keyFormControl: FormControl = new FormControl();
|
||||
public keyFormControl: UntypedFormControl = new UntypedFormControl();
|
||||
public iSong: ShowSong | null = null;
|
||||
public edit = false;
|
||||
public editSongControl = new FormControl();
|
||||
public editSongControl = new UntypedFormControl();
|
||||
|
||||
public constructor(private showSongService: ShowSongService) {}
|
||||
|
||||
@@ -40,7 +40,7 @@ export class SongComponent implements OnInit {
|
||||
|
||||
public ngOnInit(): void {
|
||||
if (!this.iSong) return;
|
||||
this.keyFormControl = new FormControl(this.iSong.key);
|
||||
this.keyFormControl = new UntypedFormControl(this.iSong.key);
|
||||
this.keyFormControl.valueChanges.subscribe((value: string) => {
|
||||
if (!this.showId || !this.iSong) return;
|
||||
void this.showSongService.update$(this.showId, this.iSong.id, {key: value});
|
||||
|
||||
Reference in New Issue
Block a user