F: Added toast to entry-page and other components
This commit is contained in:
1 parent
d01913bb6d
commit
8533076080
6 files changed
+114
-84
No files matched your search
+3
-4
@@ -12,7 +12,7 @@ import { FormBuilder, FormGroup } from '@angular/forms';
|
||||
templateUrl: './entry-settings-modal.component.html',
|
||||
styleUrls: ['./entry-settings-modal.component.css'],
|
||||
})
|
||||
export class EntrySettingsModalComponent implements OnInit {
|
||||
export class EntrySettingsModalComponent {
|
||||
entryId!: number;
|
||||
entryForm: FormGroup;
|
||||
|
||||
@@ -38,8 +38,6 @@ export class EntrySettingsModalComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
ngOnInit() {}
|
||||
|
||||
onSubmit() {
|
||||
const entryData = this.entryForm.value;
|
||||
|
||||
@@ -48,7 +46,8 @@ export class EntrySettingsModalComponent implements OnInit {
|
||||
this.dialogRef.close({ entry: result });
|
||||
},
|
||||
error: (error) => {
|
||||
console.log(error);
|
||||
// console.log(`Error while updating entry settings`, error);
|
||||
this.dialogRef.close();
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user