only show content options on saved content
This commit is contained in:
@@ -215,6 +215,10 @@ function ContentEditController($scope, $routeParams, $q, $timeout, $window, cont
|
||||
};
|
||||
|
||||
$scope.options = function(content){
|
||||
if(!content.id){
|
||||
return;
|
||||
}
|
||||
|
||||
if(!$scope.actions){
|
||||
var node = {menuUrl: "/umbraco/UmbracoTrees/ContentTree/GetMenu?id=" + content.id + "&application=content"};
|
||||
treeService.getMenu({ treeNode: node })
|
||||
|
||||
@@ -15,12 +15,11 @@
|
||||
<div class="span8">
|
||||
|
||||
<div class="btn-toolbar pull-right umb-btn-toolbar">
|
||||
{{nav.ui.currentNode | json}}
|
||||
<div class="btn-group" ng-animate="'fade'" ng-show="formStatus">
|
||||
<p class="btn btn-link umb-status-label">{{formStatus}}</p>
|
||||
</div>
|
||||
|
||||
<div class="btn-group">
|
||||
<div class="btn-group" ng-class="{dimmed: content.id === 0}">
|
||||
<!-- options button -->
|
||||
<a class="btn" href="#" ng-click="options(content)" prevent-default data-toggle="dropdown">
|
||||
<i class="icon-settings" style="line-height: 14px"></i> Options
|
||||
|
||||
Reference in New Issue
Block a user