saleor-dashboard/src/channels
Wojciech Mista a5ac6bb92e
Exit form fixes (#1889)
* 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"

* Update exit form disabling conditions for zone rates forms
2022-03-23 10:13:23 +01:00
..
ChannelsWithVariantsAvailabilityCard Use graphql-codegen (#1874) 2022-03-09 09:56:55 +01:00
components Use graphql-codegen (#1874) 2022-03-09 09:56:55 +01:00
pages Exit form fixes (#1889) 2022-03-23 10:13:23 +01:00
views Use graphql-codegen (#1874) 2022-03-09 09:56:55 +01:00
fixtures.ts Use graphql-codegen (#1874) 2022-03-09 09:56:55 +01:00
index.tsx Saleor 1906 user should be able to delete a channel if there are no orders associated with it (#901) 2021-01-12 15:44:11 +01:00
mutations.ts Use graphql-codegen (#1874) 2022-03-09 09:56:55 +01:00
queries.ts Use graphql-codegen (#1874) 2022-03-09 09:56:55 +01:00
urls.ts replace stringifyQs imports 2021-08-09 17:27:13 +02:00
utils.ts Use graphql-codegen (#1874) 2022-03-09 09:56:55 +01:00