From edbe049171a47f76ae4b53acdc0e6ed73408e384 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 3 Jul 2020 09:17:09 +0200 Subject: [PATCH] :lipstick: Minor cosmetic fix on exports component. --- .../ui/workspace/sidebar/options/exports.cljs | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/frontend/src/uxbox/main/ui/workspace/sidebar/options/exports.cljs b/frontend/src/uxbox/main/ui/workspace/sidebar/options/exports.cljs index b383cd91d..87c913a5b 100644 --- a/frontend/src/uxbox/main/ui/workspace/sidebar/options/exports.cljs +++ b/frontend/src/uxbox/main/ui/workspace/sidebar/options/exports.cljs @@ -109,11 +109,11 @@ {:exports exports})))))] - (if (seq exports) - [:div.element-set.exports-options - [:div.element-set-title - [:span (t locale "workspace.options.export")] - [:div.add-page {:on-click add-export} i/close]] + [:div.element-set.exports-options + [:div.element-set-title + [:span (t locale "workspace.options.export")] + [:div.add-page {:on-click add-export} i/close]] + (when (seq exports) [:div.element-set-content (for [[index export] (d/enumerate exports)] [:div.element-set-options-group @@ -141,11 +141,5 @@ :disabled @loading?} (if @loading? (t locale "workspace.options.exporting-object") - (t locale "workspace.options.export-object"))]]] - - [:div.element-set - [:div.element-set-title - [:span (t locale "workspace.options.export")] - [:div.add-page {:on-click add-export} i/close]]]))) - + (t locale "workspace.options.export-object"))]])]))