Browse Source

fix: add enter for delete page button

Weihua Lu 4 years ago
parent
commit
1be512d91b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/main/frontend/components/page.cljs

+ 1 - 0
src/main/frontend/components/page.cljs

@@ -178,6 +178,7 @@
         [:span.flex.w-full.rounded-md.shadow-sm.sm:ml-3.sm:w-auto
         [:span.flex.w-full.rounded-md.shadow-sm.sm:ml-3.sm:w-auto
          [:button.inline-flex.justify-center.w-full.rounded-md.border.border-transparent.px-4.py-2.bg-indigo-600.text-base.leading-6.font-medium.text-white.shadow-sm.hover:bg-indigo-500.focus:outline-none.focus:border-indigo-700.focus:shadow-outline-indigo.transition.ease-in-out.duration-150.sm:text-sm.sm:leading-5
          [:button.inline-flex.justify-center.w-full.rounded-md.border.border-transparent.px-4.py-2.bg-indigo-600.text-base.leading-6.font-medium.text-white.shadow-sm.hover:bg-indigo-500.focus:outline-none.focus:border-indigo-700.focus:shadow-outline-indigo.transition.ease-in-out.duration-150.sm:text-sm.sm:leading-5
           {:type "button"
           {:type "button"
+           :class "ui__modal-enter"
            :on-click (fn []
            :on-click (fn []
                        (delete-page! page-name))}
                        (delete-page! page-name))}
           (t :yes)]]
           (t :yes)]]