From 8388ec12cdcc13bb4ea502accaeb27e6cfa04e93 Mon Sep 17 00:00:00 2001 From: Shannon Date: Tue, 21 Oct 2014 10:34:52 +1000 Subject: [PATCH] Ensure preview button is not shown when the content is being created --- .../src/views/content/content.edit.controller.js | 1 + src/Umbraco.Web.UI.Client/src/views/content/edit.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/content/content.edit.controller.js b/src/Umbraco.Web.UI.Client/src/views/content/content.edit.controller.js index c2df32c8e0..bcfb1a1722 100644 --- a/src/Umbraco.Web.UI.Client/src/views/content/content.edit.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/content/content.edit.controller.js @@ -13,6 +13,7 @@ function ContentEditController($scope, $rootScope, $routeParams, $q, $timeout, $ $scope.subButtons = []; $scope.currentSection = appState.getSectionState("currentSection"); $scope.currentNode = null; //the editors affiliated node + $scope.isNew = $routeParams.create; //This sets up the action buttons based on what permissions the user has. //The allowedActions parameter contains a list of chars, each represents a button by permission so diff --git a/src/Umbraco.Web.UI.Client/src/views/content/edit.html b/src/Umbraco.Web.UI.Client/src/views/content/edit.html index e4cd5ff32f..29c646a092 100644 --- a/src/Umbraco.Web.UI.Client/src/views/content/edit.html +++ b/src/Umbraco.Web.UI.Client/src/views/content/edit.html @@ -46,7 +46,7 @@ -
+