mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 08:50:57 -05:00
🐛 Remove duplicate audit action reporting.
This commit is contained in:
parent
11ea4c7aec
commit
9bc816fc1c
3 changed files with 8 additions and 7 deletions
|
@ -7,7 +7,6 @@
|
||||||
(ns app.main.ui.dashboard.export
|
(ns app.main.ui.dashboard.export
|
||||||
(:require
|
(:require
|
||||||
[app.common.data :as d]
|
[app.common.data :as d]
|
||||||
[app.main.data.events :as ev]
|
|
||||||
[app.main.data.modal :as modal]
|
[app.main.data.modal :as modal]
|
||||||
[app.main.store :as st]
|
[app.main.store :as st]
|
||||||
[app.main.ui.icons :as i]
|
[app.main.ui.icons :as i]
|
||||||
|
@ -15,7 +14,6 @@
|
||||||
[app.util.dom :as dom]
|
[app.util.dom :as dom]
|
||||||
[app.util.i18n :as i18n :refer [tr]]
|
[app.util.i18n :as i18n :refer [tr]]
|
||||||
[beicon.core :as rx]
|
[beicon.core :as rx]
|
||||||
[potok.core :as ptk]
|
|
||||||
[rumext.alpha :as mf]))
|
[rumext.alpha :as mf]))
|
||||||
|
|
||||||
(def ^:const options [:all :merge :detach])
|
(def ^:const options [:all :merge :detach])
|
||||||
|
@ -60,10 +58,6 @@
|
||||||
|
|
||||||
start-export
|
start-export
|
||||||
(fn []
|
(fn []
|
||||||
(st/emit! (ptk/event ::ev/event {::ev/name "export-files"
|
|
||||||
:num-files (count (:files @state))
|
|
||||||
:option @selected-option}))
|
|
||||||
|
|
||||||
(swap! state assoc :status :exporting)
|
(swap! state assoc :status :exporting)
|
||||||
(->> (uw/ask-many!
|
(->> (uw/ask-many!
|
||||||
{:cmd :export-file
|
{:cmd :export-file
|
||||||
|
|
|
@ -162,6 +162,7 @@
|
||||||
(mf/deps files current-team-id)
|
(mf/deps files current-team-id)
|
||||||
(fn [_]
|
(fn [_]
|
||||||
(st/emit! (ptk/event ::ev/event {::ev/name "export-files"
|
(st/emit! (ptk/event ::ev/event {::ev/name "export-files"
|
||||||
|
::ev/origin "dashboard"
|
||||||
:num-files (count files)}))
|
:num-files (count files)}))
|
||||||
(->> (rx/from files)
|
(->> (rx/from files)
|
||||||
(rx/flat-map
|
(rx/flat-map
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
[app.common.data :as d]
|
[app.common.data :as d]
|
||||||
[app.common.math :as mth]
|
[app.common.math :as mth]
|
||||||
[app.config :as cf]
|
[app.config :as cf]
|
||||||
|
[app.main.data.events :as ev]
|
||||||
[app.main.data.messages :as dm]
|
[app.main.data.messages :as dm]
|
||||||
[app.main.data.modal :as modal]
|
[app.main.data.modal :as modal]
|
||||||
[app.main.data.workspace :as dw]
|
[app.main.data.workspace :as dw]
|
||||||
|
@ -25,6 +26,7 @@
|
||||||
[app.util.router :as rt]
|
[app.util.router :as rt]
|
||||||
[beicon.core :as rx]
|
[beicon.core :as rx]
|
||||||
[okulary.core :as l]
|
[okulary.core :as l]
|
||||||
|
[potok.core :as ptk]
|
||||||
[rumext.alpha :as mf]))
|
[rumext.alpha :as mf]))
|
||||||
|
|
||||||
;; --- Zoom Widget
|
;; --- Zoom Widget
|
||||||
|
@ -152,6 +154,10 @@
|
||||||
(mf/use-callback
|
(mf/use-callback
|
||||||
(mf/deps file team-id)
|
(mf/deps file team-id)
|
||||||
(fn [_]
|
(fn [_]
|
||||||
|
(st/emit! (ptk/event ::ev/event {::ev/name "export-files"
|
||||||
|
::ev/origin "workspace"
|
||||||
|
:num-files 1}))
|
||||||
|
|
||||||
(->> (rx/of file)
|
(->> (rx/of file)
|
||||||
(rx/flat-map
|
(rx/flat-map
|
||||||
(fn [file]
|
(fn [file]
|
||||||
|
|
Loading…
Reference in a new issue