disable filters and sorting in windows for now
This commit is contained in:
parent
65a357dcd9
commit
439c237336
|
@ -8,7 +8,8 @@
|
||||||
[commiteth.handlers :as handlers]
|
[commiteth.handlers :as handlers]
|
||||||
[commiteth.db :as db]
|
[commiteth.db :as db]
|
||||||
[commiteth.ui-model :as ui-model]
|
[commiteth.ui-model :as ui-model]
|
||||||
[commiteth.subscriptions :as subs]))
|
[commiteth.subscriptions :as subs]
|
||||||
|
[commiteth.util :as util]))
|
||||||
|
|
||||||
|
|
||||||
(defn bounty-item [bounty]
|
(defn bounty-item [bounty]
|
||||||
|
@ -210,7 +211,8 @@
|
||||||
[:div.item-counts-label-and-sorting-container
|
[:div.item-counts-label-and-sorting-container
|
||||||
[:div.item-counts-label
|
[:div.item-counts-label
|
||||||
[:span (str "Showing " left "-" right " of " total-count)]]
|
[: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)]))
|
(display-data-page bounty-page-data bounty-item container-element)]))
|
||||||
|
|
||||||
(defn bounties-page []
|
(defn bounties-page []
|
||||||
|
@ -225,7 +227,7 @@
|
||||||
[:div.ui.container.open-bounties-container
|
[:div.ui.container.open-bounties-container
|
||||||
{:ref #(reset! container-element %1)}
|
{:ref #(reset! container-element %1)}
|
||||||
[:div.open-bounties-header "Bounties"]
|
[:div.open-bounties-header "Bounties"]
|
||||||
[:div.open-bounties-filter-and-sort
|
(when-not (util/os-windows?)
|
||||||
[bounty-filters-view]]
|
[:div.open-bounties-filter-and-sort
|
||||||
[bounties-list @bounty-page-data container-element]]))
|
[bounty-filters-view]])
|
||||||
))
|
[bounties-list @bounty-page-data container-element]]))))
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
(ns commiteth.util
|
||||||
|
(:require [clojure.string :as string]))
|
||||||
|
|
||||||
|
(defn os-windows? []
|
||||||
|
(string/includes? (-> js/navigator .-platform) "Win"))
|
Loading…
Reference in New Issue