diff --git a/blocks/data/index.js b/blocks/data/index.js index 5fb5253e..0ffc0e2e 100644 --- a/blocks/data/index.js +++ b/blocks/data/index.js @@ -27,12 +27,15 @@ module.exports = { }, ready: function (){ var self = this; - // Fetch collected Data - /*var data = new Data('foooobar'); + // Fetch collected Data self.currentDataSets = []; - data.getAllDataSets(function(currentDataSets) { - self.currentDataSets = currentDataSets; - });*/ + if(!self.isEditing) { + var data = new Data(self.$parent.$parent.$data.app.id); + + data.getAllDataSets(function(currentDataSets) { + self.currentDataSets = currentDataSets; + }); + } } }; diff --git a/components/dataRepresentation/index.less b/components/dataRepresentation/index.less index 8e7c1e06..d5acaf32 100644 --- a/components/dataRepresentation/index.less +++ b/components/dataRepresentation/index.less @@ -114,6 +114,8 @@ .noDataInfo { border-bottom: 1px solid @borderColor; + border-top: 1px solid @borderColor; + margin-top: -1px; padding: 10px 14px; font-size: 14px; color: @darkGrey;