Update umbBlockCard.component.js

change transparent to none
This commit is contained in:
Niels Lyngsø
2020-08-25 13:23:11 +02:00
committed by GitHub
parent 056a554875
commit 30e6f83358

View File

@@ -17,10 +17,9 @@
function BlockCardController($scope, umbRequestHelper) {
var vm = this;
vm.styleBackgroundImage = "transparent";
vm.styleBackgroundImage = "none";
var unwatch = $scope.$watch("vm.blockConfigModel.thumbnail", (newValue, oldValue) => {
console.log("updateThumbnail")
if(newValue !== oldValue) {
vm.updateThumbnail();
}
@@ -37,7 +36,7 @@
vm.updateThumbnail = function () {
if (vm.blockConfigModel.thumbnail == null || vm.blockConfigModel.thumbnail === "") {
vm.styleBackgroundImage = "transparent";
vm.styleBackgroundImage = "none";
return;
}