kind of able to select more than 1.

This commit is contained in:
Bryce Covert
2019-04-17 07:47:37 -07:00
parent 5c44ef07de
commit 68ca16d382
4 changed files with 40 additions and 14 deletions

View File

@@ -1,5 +1,6 @@
(ns auto-ap.subs
(:require [re-frame.core :as re-frame]
[auto-ap.utils :refer [by]]
[clojure.string :as str]
[goog.crypt.base64 :as base64]))
@@ -33,6 +34,11 @@
(fn [db client]
(:accounts db)))
(re-frame/reg-sub
::accounts-for-client-by-id
(fn [db client]
(by :id (:accounts db))))
(re-frame/reg-sub
::accounts-for-current-client
(fn [db]