mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-01 04:53:40 +00:00
* port 040 config, WIP * update fixtures * use taiga modal for backups too * fix: update Taiga UI and refactor everything to work * chore: package-lock * fix interfaces and mocks for interfaces * better mocks * function to transform old spec to new * delete unused fns * delete unused FE config utils * fix exports from sdk * reorganize exports * functions to translate config * rename unionSelectKey and unionValueKey * Adding in the transformation of the getConfig to the new types. * chore: add Taiga UI to preloader --------- Co-authored-by: waterplea <alexander@inkin.ru> Co-authored-by: Aiden McClelland <me@drbonez.dev> Co-authored-by: J H <dragondef@gmail.com>
20 lines
466 B
TypeScript
20 lines
466 B
TypeScript
import { Injectable } from '@angular/core'
|
|
import { ControlDirective } from './control.directive'
|
|
|
|
@Injectable()
|
|
export class InvalidService {
|
|
private readonly controls: ControlDirective[] = []
|
|
|
|
scrollIntoView() {
|
|
this.controls.find(({ invalid }) => invalid)?.scrollIntoView()
|
|
}
|
|
|
|
add(control: ControlDirective) {
|
|
this.controls.push(control)
|
|
}
|
|
|
|
remove(control: ControlDirective) {
|
|
this.controls.splice(this.controls.indexOf(control), 1)
|
|
}
|
|
}
|