saleor-dashboard/src
Wojciech Mista 26659a0be7
Remove redundant confirmLeave on tracking number dialog (#1926)
* Add onBeforeUnload handler to prevent accidental refresh

* Update button messages

* Fix exit form not working after submit

* Make onBeforeUnload disable if env is development

* Fix onClose

* Remove internal date time field state

* Update messages and dialog

* Prevent navigation on 400 error

* Add submit disabled ref in exit form

* Update exit form dialog for disabled save

* Update confirmLeave forms to set ref if save is disabled

* Remove unused error handling

* Remove explicit ref type

* Remove unused import

* Fix disabled type

* Add disable check function to generic forms

* Add custom isDisabled method to sale and voucher forms

* Add default isDisabled functions to confirmLeave forms

* Update tests

* Remove unused code

* Rebase fixes + update tests

* Refactor form and useform

* Refactor disabling forms

* Change "saveDisabled" name to "isSaveDisabled" for improved readability

* Change "isDisabled" function to "checkIfSaveIsDisabled"

* Remove redundant confirmLeave on tracking number dialog
2022-03-23 11:41:26 +01:00
..
apps Exit form fixes (#1889) 2022-03-23 10:13:23 +01:00
attributes Exit form fixes (#1889) 2022-03-23 10:13:23 +01:00
auth Don't fetch user details on login (#1909) 2022-03-23 08:15:05 +01:00
categories Exit form fixes (#1889) 2022-03-23 10:13:23 +01:00
channels Exit form fixes (#1889) 2022-03-23 10:13:23 +01:00
collections Exit form fixes (#1889) 2022-03-23 10:13:23 +01:00
components Exit form fixes (#1889) 2022-03-23 10:13:23 +01:00
configuration Use graphql-codegen (#1874) 2022-03-09 09:56:55 +01:00
containers Use graphql-codegen (#1874) 2022-03-09 09:56:55 +01:00
customers Exit form fixes (#1889) 2022-03-23 10:13:23 +01:00
discounts Exit form fixes (#1889) 2022-03-23 10:13:23 +01:00
files Use graphql-codegen (#1874) 2022-03-09 09:56:55 +01:00
fragments Use graphql-codegen (#1874) 2022-03-09 09:56:55 +01:00
giftCards Use graphql-codegen (#1874) 2022-03-09 09:56:55 +01:00
graphql Disable query batching (#1922) 2022-03-17 16:00:17 +01:00
home Use graphql-codegen (#1874) 2022-03-09 09:56:55 +01:00
hooks Exit form fixes (#1889) 2022-03-23 10:13:23 +01:00
icons Fix TS issues on icon components (#1878) 2022-02-18 11:49:46 +01:00
navigation Use graphql-codegen (#1874) 2022-03-09 09:56:55 +01:00
orders Remove redundant confirmLeave on tracking number dialog (#1926) 2022-03-23 11:41:26 +01:00
pages Exit form fixes (#1889) 2022-03-23 10:13:23 +01:00
pageTypes Exit form fixes (#1889) 2022-03-23 10:13:23 +01:00
permissionGroups Exit form fixes (#1889) 2022-03-23 10:13:23 +01:00
plugins Exit form fixes (#1889) 2022-03-23 10:13:23 +01:00
products Exit form fixes (#1889) 2022-03-23 10:13:23 +01:00
productTypes Exit form fixes (#1889) 2022-03-23 10:13:23 +01:00
searches Use graphql-codegen (#1874) 2022-03-09 09:56:55 +01:00
services/errorTracking Ignore EditorJS errors (#1036) 2021-03-30 16:31:38 +02:00
shipping Exit form fixes (#1889) 2022-03-23 10:13:23 +01:00
siteSettings Exit form fixes (#1889) 2022-03-23 10:13:23 +01:00
staff Exit form fixes (#1889) 2022-03-23 10:13:23 +01:00
storybook Change cost price placeholder (#1923) 2022-03-22 14:40:18 +01:00
styles Preview pills (#1880) 2022-02-21 12:38:27 +01:00
taxes Exit form fixes (#1889) 2022-03-23 10:13:23 +01:00
translations Use graphql-codegen (#1874) 2022-03-09 09:56:55 +01:00
utils Fix empty rich text editor not loading (#1904) 2022-03-16 11:09:12 +01:00
warehouses Exit form fixes (#1889) 2022-03-23 10:13:23 +01:00
webhooks Use graphql-codegen (#1874) 2022-03-09 09:56:55 +01:00
config.ts Fix invalid api path (#1911) 2022-03-09 12:17:10 +01:00
fixtures.ts Use graphql-codegen (#1874) 2022-03-09 09:56:55 +01:00
index.html Disable search engine indexing out of the box (#1907) 2022-03-10 12:04:07 +01:00
index.tsx Disable query batching (#1922) 2022-03-17 16:00:17 +01:00
intl.ts Add api error log in notifications (#1873) 2022-03-04 11:52:58 +01:00
misc.ts Exit form fixes (#1889) 2022-03-23 10:13:23 +01:00
NotFound.tsx Use FC instead of deprecated StatelessComponent 2019-11-07 12:34:54 +01:00
sw.js Add service worker (#1073) 2021-04-26 12:10:47 +02:00
themeOverrides.ts Bump macaw to 0.3 (#1807) 2022-01-28 13:34:20 +01:00
types.ts Disable query batching (#1922) 2022-03-17 16:00:17 +01:00