- getInvalidFieldsTitle() {
- let title = '';
- const nameControl = this.form.controls['name'];
- const descriptionControl = this.form.controls['description'];
-
- if (!nameControl.valid) {
- title += 'A name is required\n';
- }
-
- if (this.tags.length === 0) {
- title += 'At least one tag is required\n';
- }
-
- if (this.filename === null) {
- title += 'A file is required\n';
- }
-
- if (!descriptionControl.valid) {
- title += 'A description is required\n';
- }
-
- return title;
- }
-