Commit 3fc76389 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Don't show comment/auth form while loading comments.

parent ab81f282
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -29,13 +29,6 @@ Ext.define('Docs.view.comments.ListWithForm', {
        ];

        this.callParent(arguments);

        if (Docs.Auth.isLoggedIn()) {
            this.showCommentingForm();
        }
        else {
            this.showAuthForm();
        }
    },

    postComment: function(content) {
@@ -52,6 +45,14 @@ Ext.define('Docs.view.comments.ListWithForm', {
     */
    load: function(comments, append) {
        this.list.load(comments, append);

        // Only show auth/comment form after the initial load.
        if (Docs.Auth.isLoggedIn()) {
            this.showCommentingForm();
        }
        else {
            this.showAuthForm();
        }
    },

    /**