From 47f0ebb80dc8c6db5dacf79c6d1ccc2bcddc2d75 Mon Sep 17 00:00:00 2001
From: Delucse <46593742+Delucse@users.noreply.github.com>
Date: Tue, 1 Dec 2020 14:37:32 +0100
Subject: [PATCH] restriction of workspace functions in context tutorials
---
src/components/Tutorial/Assessment.js | 2 +-
src/components/WorkspaceFunc.js | 86 ++++++++++++++-------------
2 files changed, 47 insertions(+), 41 deletions(-)
diff --git a/src/components/Tutorial/Assessment.js b/src/components/Tutorial/Assessment.js
index 3f62941..19fea9b 100644
--- a/src/components/Tutorial/Assessment.js
+++ b/src/components/Tutorial/Assessment.js
@@ -34,7 +34,7 @@ class Assessment extends Component {
return (
{currentTask.headline}
-
+
- {!this.props.solutionCheck ?
+ {!this.props.assessment ?
{ this.setState({ file: true, open: true, saveFile: false, title: 'Projekt benennen', content: 'Bitte gib einen Namen für das Projekt ein und bestätige diesen mit einem Klick auf \'Eingabe\'.' }) }}>
{this.props.name && !isWidthDown('xs', this.props.width) ? {this.props.name} : null}
@@ -266,7 +266,7 @@ class WorkspaceFunc extends Component {
: null}
- {this.props.solutionCheck ? : }
+ {this.props.assessment ? : }
-
-
{ this.uploadXmlFile(e.target.files[0]) }}
- id="open-blocks"
- type="file"
- />
-
-
-
-
-
-
-
-
-
- { this.createFileName('svg'); }}
- >
-
-
-
+ {!this.props.assessment?
+
+
{ this.uploadXmlFile(e.target.files[0]) }}
+ id="open-blocks"
+ type="file"
+ />
+
+
+
+
+
+
+
+
+ : null}
+ {!this.props.assessment?
+
+ { this.createFileName('svg'); }}
+ >
+
+
+
+ : null}
-
- this.shareBlocks()}
- >
-
-
-
+ {!this.props.assessment?
+
+ this.shareBlocks()}
+ >
+
+
+
+ :null}
Dein Link wurde erstellt.