LT-240: Add studyListFunctionsEnabled property (false as default) in public.ui object in settings file to enable/disable import / export / anonymize functions

LT-239: Error handling on the import process (WIP)
This commit is contained in:
Aysel Afsar committed 2016-04-21 22:42:06 -04:00
1 parent 1e1c4033a6
commit 2a17760ff8
15 files changed
+267 -179

No files matched your search

@@ -4,7 +4,7 @@
{{#if importSupported }}
<span class="btn btn-default btn-file">
<i class="fa fa-upload"></i>
<input id="btnImport" title="Import" type="file" webkitdirectory directory multiple>
<input id="btnImport" title="Import Study" type="file" webkitdirectory directory multiple>
</span>
{{/if }}
</div>
@@ -12,7 +12,10 @@ Template.worklistToolbar.events({
Template.worklistToolbar.helpers({
importSupported: function() {
var importSupported = Session.get('importSupported');
if (importSupported) {
var studyListFunctionsEnabled = Meteor.settings && Meteor.settings.public && Meteor.settings.public.ui &&
Meteor.settings.public.ui.studyListFunctionsEnabled || false;
if (importSupported && studyListFunctionsEnabled) {
return true;
}
return false;
@@ -1,8 +1,8 @@
#worklistToolbar
background-color: black
text-align: right
width: 100%
height: auto
position: absolute
top: 0
right: 0
.btn-file
position: relative