diff --git a/app/main/posts/views/post-toolbar.directive.js b/app/main/posts/views/post-toolbar.directive.js index cc070d8135..4a5b4f18d9 100644 --- a/app/main/posts/views/post-toolbar.directive.js +++ b/app/main/posts/views/post-toolbar.directive.js @@ -14,8 +14,8 @@ function PostToolbarDirective() { }; } -PostToolbarController.$inject = ['$scope', '$rootScope', 'Notify', 'PostLockService', '$state', '$window', 'LoadingProgress']; -function PostToolbarController($scope, $rootScope, Notify, PostLockService, $state, $window, LoadingProgress) { +PostToolbarController.$inject = ['$scope', '$rootScope', 'Notify', 'PostLockService', '$state', 'LoadingProgress']; +function PostToolbarController($scope, $rootScope, Notify, PostLockService, $state, LoadingProgress) { $scope.setEditMode = setEditMode; $scope.savePost = savePost; $scope.hasPermission = $rootScope.hasPermission('Manage Posts'); @@ -27,7 +27,6 @@ function PostToolbarController($scope, $rootScope, Notify, PostLockService, $sta $scope.hideOtherActions = hideOtherActions; $scope.showOtherActions = showOtherActions; $scope.filtersActive = false; - $scope.isEmbed = isEmbed; function editEnabled() { @@ -63,8 +62,4 @@ function PostToolbarController($scope, $rootScope, Notify, PostLockService, $sta function showOtherActions() { $scope.filtersActive = false; } - - function isEmbed() { - return $window.self !== $window.top - } } diff --git a/app/main/posts/views/post-toolbar.html b/app/main/posts/views/post-toolbar.html index 4028651323..48d5106fe5 100644 --- a/app/main/posts/views/post-toolbar.html +++ b/app/main/posts/views/post-toolbar.html @@ -1,31 +1,40 @@
\ No newline at end of file