276276 fill
277277 >
278278 <b-tabs card class =" files" content-class =" m-2" lazy >
279+ <!-- TODO: Filename verwenden -->
279280 <b-tab
280281 :title =" 'OutputFile ' + artifactParent_index"
281282 ref =" artifact"
@@ -697,7 +698,7 @@ export default {
697698 if (data && (data === " {{ data }}" || data === " " ) || this .modifiedByTeacher ) {
698699 this .json = this .$store .state .jsonTemplate ;
699700 this .dataTemplate = this .$store .state .dataTemplate ;
700- this . $store . commit ( " updateModifiedByTeacher " , false );
701+
701702 } else {
702703 this .json = JSON .parse (base64url .decode (data));
703704 this .$store .commit (" updateDataTemplate" , data);
@@ -710,15 +711,18 @@ export default {
710711 if (token && token !== " {{ token }}" && token !== " " && this .$store .state .token .length === 0 ) {
711712 this .$store .commit (" updateToken" , appDiv .getAttribute (" data-token" ));
712713 } else if (this .$store .state .token .length > 0 ) {
713- if (token && (token === " {{ token }}" || token === " " )) {
714+ if (token && (token === " {{ token }}" || token === " " ) || this . modifiedByTeacher ) {
714715 this .token = this .$store .state .token ;
716+
715717 } else {
716718 this .$store .commit (" updateToken" , appDiv .getAttribute (" data-token" ));
717719 }
718720 } else {
719721 this .token = " " ;
720722 }
721723
724+ this .$store .commit (" updateModifiedByTeacher" , false );
725+
722726 if (this .$store .state .dataTemplate .length === 0 && data !== " {{ data }}" ) {
723727 this .dataTemplate = data;
724728 } else if (this .$store .state .dataTemplate .length === 0 && Object .keys (this .$store .state .jsonTemplate ).length > 0 ) {
0 commit comments