FIX: Hide quick-edit button for the time being.

FIX: Hide quick-edit button for the time being.

From 319aa7b582f17b0a61d487194092682bb19ca75d Mon Sep 17 00:00:00 2001
From: Dan Ungureanu <dan@ungureanu.me>
Date: Thu, 29 Nov 2018 22:54:23 +0200
Subject: [PATCH] FIX: Hide quick-edit button for the time being.


diff --git a/assets/javascripts/discourse/initializers/hook-decrypt-topic.js.es6 b/assets/javascripts/discourse/initializers/hook-decrypt-topic.js.es6
index 442e591..8346cbc 100644
--- a/assets/javascripts/discourse/initializers/hook-decrypt-topic.js.es6
+++ b/assets/javascripts/discourse/initializers/hook-decrypt-topic.js.es6
@@ -37,6 +37,9 @@ function decryptElements(containerSelector, elementSelector) {
         } else {
           $el.html(icon + " " + title);
         }
+
+        // TODO: Hide quick-edit button for the time being.
+        $(".edit-topic").hide();
       })
       .catch(() => $(this).data("decrypted", null));
   });

GitHub