disable filters and sorting in windows for now

This commit is contained in:
pablodip 2018-02-07 21:22:38 +01:00
parent 65a357dcd9
commit 439c237336
2 changed files with 13 additions and 6 deletions

View File

@ -8,7 +8,8 @@
[commiteth.handlers :as handlers]
[commiteth.db :as db]
[commiteth.ui-model :as ui-model]
[commiteth.subscriptions :as subs]))
[commiteth.subscriptions :as subs]
[commiteth.util :as util]))
(defn bounty-item [bounty]
@ -210,7 +211,8 @@
[:div.item-counts-label-and-sorting-container
[:div.item-counts-label
[:span (str "Showing " left "-" right " of " total-count)]]
[bounties-sort-view]])
(when-not (util/os-windows?)
[bounties-sort-view])])
(display-data-page bounty-page-data bounty-item container-element)]))
(defn bounties-page []
@ -225,7 +227,7 @@
[:div.ui.container.open-bounties-container
{:ref #(reset! container-element %1)}
[:div.open-bounties-header "Bounties"]
(when-not (util/os-windows?)
[:div.open-bounties-filter-and-sort
[bounty-filters-view]]
[bounties-list @bounty-page-data container-element]]))
))
[bounty-filters-view]])
[bounties-list @bounty-page-data container-element]]))))

View File

@ -0,0 +1,5 @@
(ns commiteth.util
(:require [clojure.string :as string]))
(defn os-windows? []
(string/includes? (-> js/navigator .-platform) "Win"))