From 04fc30a7e9e58d0d7ded304c6bb9951f10b14729 Mon Sep 17 00:00:00 2001
From: tekay <tom.kaesler@mni.thm.de>
Date: Wed, 28 Sep 2016 13:41:02 +0200
Subject: [PATCH] hide button when export to click isn't enabled via backend

---
 src/main/webapp/app/view/speaker/ShowcaseEditButtons.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/main/webapp/app/view/speaker/ShowcaseEditButtons.js b/src/main/webapp/app/view/speaker/ShowcaseEditButtons.js
index 9b563c6fa..0f852b9c0 100755
--- a/src/main/webapp/app/view/speaker/ShowcaseEditButtons.js
+++ b/src/main/webapp/app/view/speaker/ShowcaseEditButtons.js
@@ -138,6 +138,7 @@ Ext.define('ARSnova.view.speaker.ShowcaseEditButtons', {
 		this.exportToClickButton = Ext.create('ARSnova.view.MatrixButton', {
 			text: Messages.QUESTION_EXPORT_TO_CLICK,
 			cls: this.config.buttonClass,
+			hidden: !ARSnova.app.globalConfig.features.exportToClick,
 			imageCls: 'icon-cloud-download',
 			scope: this,
 			handler: function () {
-- 
GitLab