276
276
fill
277
277
>
278
278
<b-tabs card class =" files" content-class =" m-2" lazy >
279
+ <!-- TODO: Filename verwenden -->
279
280
<b-tab
280
281
:title =" 'OutputFile ' + artifactParent_index"
281
282
ref =" artifact"
@@ -697,7 +698,7 @@ export default {
697
698
if (data && (data === " {{ data }}" || data === " " ) || this .modifiedByTeacher ) {
698
699
this .json = this .$store .state .jsonTemplate ;
699
700
this .dataTemplate = this .$store .state .dataTemplate ;
700
- this . $store . commit ( " updateModifiedByTeacher " , false );
701
+
701
702
} else {
702
703
this .json = JSON .parse (base64url .decode (data));
703
704
this .$store .commit (" updateDataTemplate" , data);
@@ -710,15 +711,18 @@ export default {
710
711
if (token && token !== " {{ token }}" && token !== " " && this .$store .state .token .length === 0 ) {
711
712
this .$store .commit (" updateToken" , appDiv .getAttribute (" data-token" ));
712
713
} else if (this .$store .state .token .length > 0 ) {
713
- if (token && (token === " {{ token }}" || token === " " )) {
714
+ if (token && (token === " {{ token }}" || token === " " ) || this . modifiedByTeacher ) {
714
715
this .token = this .$store .state .token ;
716
+
715
717
} else {
716
718
this .$store .commit (" updateToken" , appDiv .getAttribute (" data-token" ));
717
719
}
718
720
} else {
719
721
this .token = " " ;
720
722
}
721
723
724
+ this .$store .commit (" updateModifiedByTeacher" , false );
725
+
722
726
if (this .$store .state .dataTemplate .length === 0 && data !== " {{ data }}" ) {
723
727
this .dataTemplate = data;
724
728
} else if (this .$store .state .dataTemplate .length === 0 && Object .keys (this .$store .state .jsonTemplate ).length > 0 ) {
0 commit comments