working on U4-5687 Fix issues with mini content editor that is launched from new Edit button in MNTP

This commit is contained in:
Shannon
2014-10-27 16:11:20 +10:00
parent ec86c92753
commit 40de02ca5d
4 changed files with 37 additions and 3 deletions

View File

@@ -13,6 +13,7 @@ angular.module('umbraco')
//configuration
$scope.cfg = {
multiPicker: "0",
showEditButton: "0",
entityType: "Document",
filterCssClass: "not-allowed not-published",
@@ -29,6 +30,7 @@ angular.module('umbraco')
//Umbraco persists boolean for prevalues as "0" or "1" so we need to convert that!
$scope.cfg.multiPicker = ($scope.cfg.multiPicker === "0" ? false : true);
$scope.cfg.showEditButton = ($scope.cfg.showEditButton === "0" ? false : true);
if ($scope.cfg.startNode.type === "member") {
$scope.cfg.entityType = "Member";

View File

@@ -15,7 +15,7 @@
<i class="{{node.icon}} hover-hide"></i>
{{node.name}}
</a>
<div ng-if="!dialogEditor">
<div ng-if="!dialogEditor && cfg.showEditButton">
<small><a href umb-launch-mini-editor="node">Edit</a></small>
</div>
</li>