From 814543ea827bb4c839bfa0735d7a8a1ab9470836 Mon Sep 17 00:00:00 2001 From: Obadha2 <38259840+Obadha2@users.noreply.github.com> Date: Wed, 14 Oct 2020 17:31:32 +0300 Subject: [PATCH] Revert "added isEmbed and small markup change in post-toolbar" --- .../posts/views/post-toolbar.directive.js | 9 +--- app/main/posts/views/post-toolbar.html | 49 +++++++++++-------- 2 files changed, 31 insertions(+), 27 deletions(-) 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 @@
+ -
- - - + -
-
- - -
+
+
+ + +
-
- - - -
+
+ + +
+
+ +
+ +
+
+
+ + +
- - +
+ + +
+
+
+
@@ -34,4 +43,4 @@ ..
-
+
\ No newline at end of file