#47 Hides the reply button based if comments are 2 levels deep.

This commit is contained in:
Abijeet
2017-05-24 07:02:11 +05:30
parent 03e5d61798
commit 0ff5aad9c0
2 changed files with 10 additions and 10 deletions

View 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 => {