ahmadshalloufuhh commited on
Commit
bd51bb8
·
verified ·
1 Parent(s): 3ece950

Update src/app/components/body/submitting/submitting.component.ts

Browse files
src/app/components/body/submitting/submitting.component.ts CHANGED
@@ -70,12 +70,15 @@ export class SubmittingComponent implements OnInit {
70
 
71
  onSubmit() {
72
  this.message = '';
73
-
74
  if (this.form.invalid) {
75
  this.message = 'Invalid form';
76
  return;
77
  }
78
  this.message = 'Submitting...';
 
 
 
 
79
  this.stateService.submit(
80
  this.form.value.modelName,
81
  this.form.value.modelLink,
 
70
 
71
  onSubmit() {
72
  this.message = '';
 
73
  if (this.form.invalid) {
74
  this.message = 'Invalid form';
75
  return;
76
  }
77
  this.message = 'Submitting...';
78
+ if (this.form.value.task === 'Summary Generation'){
79
+ this.message = 'Summary Generation is not supported yet';
80
+ return;
81
+ }
82
  this.stateService.submit(
83
  this.form.value.modelName,
84
  this.form.value.modelLink,