UX: Add quick search suggestion (#99)

UX: Add quick search suggestion (#99)

diff --git a/assets/javascripts/discourse/initializers/discourse-voting.js.es6 b/assets/javascripts/discourse/initializers/discourse-voting.js.es6
index 3f55f3e..3a21124 100644
--- a/assets/javascripts/discourse/initializers/discourse-voting.js.es6
+++ b/assets/javascripts/discourse/initializers/discourse-voting.js.es6
@@ -63,5 +63,12 @@ export default {
         });
       }
     });
+
+    withPluginApi("0.11.7", (api) => {
+      const siteSettings = api.container.lookup("site-settings:main");
+      if (siteSettings.voting_enabled) {
+        api.addSearchSuggestion("order:votes");
+      }
+    });
   },
 };

GitHub sha: 8052f451b4f67627bdf94ddd136ac035ed7721c3

This commit appears in #99 which was approved by Falco. It was merged by pmusaraj.