diff --git a/src/components/sites/doExerciseSite/headerBarContent.tsx b/src/components/sites/doExerciseSite/headerBarContent.tsx index aea99bd9d9c6588b918e880cc02d775eec5875e5..ba88145fcbad7ad0f96988af71c2d9020710727d 100644 --- a/src/components/sites/doExerciseSite/headerBarContent.tsx +++ b/src/components/sites/doExerciseSite/headerBarContent.tsx @@ -375,7 +375,8 @@ class HeaderBar extends React.Component<Props, any> { files: allFiles.map<SolutionFileForTestServer>(p => { return { fileName: p.fileNameWithExtension, - fileContent: p.content + fileContent: p.content, + templateFileId: p.templateFileId, } }) } diff --git a/src/components/sites/editCustomProjectSite/headerBarContent.tsx b/src/components/sites/editCustomProjectSite/headerBarContent.tsx index aac924b265b23824aff8b0ffdf1105acab343316..524a58c241379ccc63617eca93ce7979baf25ded 100644 --- a/src/components/sites/editCustomProjectSite/headerBarContent.tsx +++ b/src/components/sites/editCustomProjectSite/headerBarContent.tsx @@ -279,7 +279,8 @@ class HeaderBar extends React.Component<Props, any> { files: allFiles.map<SolutionFileForTestServer>((p: CustomProjectSolutionFileFullBase) => { return { fileName: p.fileNameWithExtension, - fileContent: p.content + fileContent: p.content, + templateFileId: null, } }) } @@ -397,4 +398,4 @@ class HeaderBar extends React.Component<Props, any> { } } -export default connect(mapStateToProps, mapDispatchToProps)(HeaderBar) \ No newline at end of file +export default connect(mapStateToProps, mapDispatchToProps)(HeaderBar) diff --git a/src/components/sites/tutorViewSite/headerBarContent.tsx b/src/components/sites/tutorViewSite/headerBarContent.tsx index bbb85efac3750d66c3cf19d36a008bf13c6b901f..ba8da3dae71f472ebf79703750f1850093bb2549 100644 --- a/src/components/sites/tutorViewSite/headerBarContent.tsx +++ b/src/components/sites/tutorViewSite/headerBarContent.tsx @@ -372,7 +372,8 @@ class HeaderBar extends React.Component<Props, any> { files: allFiles.map<SolutionFileForTestServer>(p => { return { fileName: p.fileNameWithExtension, - fileContent: p.content + fileContent: p.content, + templateFileId: p.templateFileId, } }) } @@ -430,7 +431,8 @@ class HeaderBar extends React.Component<Props, any> { files: allFiles.map<SolutionFileForTestServer>(p => { return { fileName: p.fileNameWithExtension, - fileContent: p.content + fileContent: p.content, + templateFileId: p.templateFileId, } }) } diff --git a/src/constants.ts b/src/constants.ts index cb692e078a2dc62259e10a4add2a89405ad090f8..720524cf554e47fe25263e7a6966e9fa016a56a1 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -13,7 +13,7 @@ import Logger from './helpers/logger' * y - breaking changes / new features * z - fixes, small changes */ -export const versionString = '2.18.2' +export const versionString = '2.18.3' export const supportMail = 'yapex@informatik.uni-halle.de' diff --git a/src/types/testsAndTestProtocol.ts b/src/types/testsAndTestProtocol.ts index a440532645c0a1ee4ba07574dee8e10be0fd14ee..1a1277997297bb6280ba97b75c472242163d61d4 100644 --- a/src/types/testsAndTestProtocol.ts +++ b/src/types/testsAndTestProtocol.ts @@ -419,6 +419,12 @@ export interface SolutionFileForTestServer { * the file content */ readonly fileContent: string + + /** + * null or the template file id from which the file was created + * might be needed if the solution has some hidden files + */ + readonly templateFileId: number | null } /**