File tree 2 files changed +9
-5
lines changed
src/app/transcribing-activity-configuration
2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -88,11 +88,11 @@ <h3>Create a transcription activity</h3>
88
88
>
89
89
< md-outlined-text-field
90
90
label ="Title of activity "
91
- id ="name "
91
+ id ="title "
92
92
placeholder ="title of activity "
93
93
class ="form-control "
94
94
[value] ="activityConfigurationForm.value.title "
95
- (change) ="update_config('name ', $event) "
95
+ (change) ="update_config('title ', $event) "
96
96
required
97
97
> </ md-outlined-text-field >
98
98
@@ -212,7 +212,7 @@ <h3>Create a transcription activity</h3>
212
212
mat-button
213
213
id ="save_config "
214
214
(click) ="exportActivityConfiguration() "
215
- [disabled] ="this. activityConfigurationForm.value.title.length < 3 "
215
+ [disabled] ="activityConfigurationForm.value.title.length < 3 "
216
216
>
217
217
Export Configuration
218
218
</ md-filled-button >
@@ -267,7 +267,7 @@ <h3>Create a transcription activity</h3>
267
267
label ="Data for this activity "
268
268
id ="activity_data "
269
269
class ="form-control "
270
- placeholder ="data for the activity "
270
+ placeholder ="data for the activity (click add after each entry) "
271
271
type ="textarea "
272
272
[value] ="new_word "
273
273
(change) ="updateData($event) "
Original file line number Diff line number Diff line change @@ -189,6 +189,7 @@ export class TranscribingActivityConfigurationComponent {
189
189
} ;
190
190
191
191
this . activityConfigurationForm . patchValue ( patch ) ;
192
+ //console.log(this.activityConfigurationForm.value[key]);
192
193
this . update_api_status ( ) ;
193
194
}
194
195
update_duration ( $event : Event ) {
@@ -255,7 +256,10 @@ export class TranscribingActivityConfigurationComponent {
255
256
this . activityConfigurationForm . value . api
256
257
) ;
257
258
if ( this . activityConfigurationForm . value . api . length )
258
- fetch ( this . activityConfigurationForm . value . api , { method : 'OPTIONS' } )
259
+ fetch ( this . activityConfigurationForm . value . api , {
260
+ method : 'OPTIONS' ,
261
+ headers : new Headers ( { mode : 'no-cors' } ) ,
262
+ } )
259
263
. then ( ( ) => {
260
264
this . api_is_reachable = true ;
261
265
this . toastr . success ( 'API endpoint is reachable' ) ;
You can’t perform that action at this time.
0 commit comments