fix: Editing/saving fixes (#432)

* feat: table add button is now hidden when adding/editing

feat: disable every other action on editable table when editing/adding

feat: hide add button instead of disabling it when can't add

feat: disable every other action when adding/editing on the commissions
page

feat: disable every other action when adding/editing on the locales
page

feat: disable every other action when adding/editing on the
notifications page

feat: disable save buttons while waiting for server response on tables
and editable numbers

* chore: removed TODO
This commit is contained in:
Liordino Neto 2020-09-22 18:28:55 -03:00 committed by GitHub
parent 02474a0a6d
commit 0c3ae801d0
6 changed files with 62 additions and 18 deletions

View file

@ -95,7 +95,7 @@ const Notifications = ({ name: SCREEN_KEY }) => {
<TitleSection title="Notifications" />
<Section title="Setup" error={error && !section}>
<Setup />
<Setup forceDisable={!!editingKey} />
</Section>
<Section title="Transaction alerts" error={error && section === 'tx'}>