working on U4-5687 Fix issues with mini content editor that is launched from new Edit button in MNTP
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user