]> BookStack Code Mirror - bookstack/blobdiff - resources/assets/js/controllers.js
#47 Hides the reply button based if comments are 2 levels deep.
[bookstack] / resources / assets / js / controllers.js
index 9d5478690cdf1ab236e3aca6dec31d965dfcc121..19808905636ebf1f710c450313e61de988a5b3c7 100644 (file)
@@ -745,11 +745,11 @@ module.exports = function (ngApp, events) {
     ngApp.controller('CommentListController', ['$scope', '$http', '$timeout', function ($scope, $http, $timeout) {
         let vm = this;
         $scope.errors = {};
+        // keep track of comment levels
+        $scope.level = 1;
         $scope.defaultAvatar = defaultAvatar;
         vm.totalCommentsStr = 'Loading...';
-        $scope.editorChange = function (content) {
-            console.log(content);
-        }
+
 
         $timeout(function() {
             $http.get(window.baseUrl(`/ajax/page/${$scope.pageId}/comments/`)).then(resp => {