Fixes boolean conversion logic in ColorPickerConfigurationEditor, Fixes tree grouping logic and moves groups cache to the ApplicationTreeService, fix other merge issues

This commit is contained in:
Shannon
2018-10-23 18:28:55 +11:00
parent d9a4d1fa97
commit 9dadecdcc1
7 changed files with 90 additions and 64 deletions

View File

@@ -108,7 +108,7 @@
}
else {
// From: https://stackoverflow.com/a/51789597/5018
var type = vm.src.substring(vm.src.indexOf("/") + 1, scope.src.indexOf(";base64"));
var type = vm.src.substring(vm.src.indexOf("/") + 1, vm.src.indexOf(";base64"));
if (type.startsWith("svg")) {
vm.isCroppable = false;
vm.hasDimensions = false;

View File

@@ -130,7 +130,8 @@ angular.module('umbraco')
* @param {any} crop
*/
function crop(crop) {
$scope.currentCrop = crop;
// clone the crop so we can discard the changes
$scope.currentCrop = angular.copy(crop);
$scope.currentPoint = null;
//set form to dirty to track changes