Shun Miyazawa %!s(int64=3) %!d(string=hai) anos
pai
achega
b64a1cc435
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      packages/app/src/components/PageCreateModal.jsx

+ 2 - 1
packages/app/src/components/PageCreateModal.jsx

@@ -293,8 +293,9 @@ const PageCreateModal = () => {
             <div className="d-flex justify-content-end mt-1 mt-sm-0">
               <button
                 type="button"
-                className={`grw-btn-create-page btn btn-outline-primary rounded-pill text-nowrap ml-3 ${template == null && 'disabled'}`}
+                className='grw-btn-create-page btn btn-outline-primary rounded-pill text-nowrap ml-3'
                 onClick={createTemplatePage}
+                disabled={template == null}
               >
                 <i className="icon-fw icon-doc"></i>{t('Edit')}
               </button>