-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
799 additions
and
760 deletions.
There are no files selected for viewing
1,486 changes: 743 additions & 743 deletions
1,486
judo-ui-react-itest/ActionGroupTest/model/ActionGroupTest-ui.model
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
judo-ui-react/src/main/resources/actor/src/pages/v2/actions/RefreshAction.fragment.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 25 additions & 1 deletion
26
judo-ui-react/src/main/resources/actor/src/pages/v2/actions/UpdateAction.fragment.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,27 @@ | ||
const {{ simpleActionDefinitionName action.actionDefinition }} = async () => { | ||
alert('UpdateAction'); | ||
{{# if (hasPageRequiredBy page) }} | ||
{{> actor/src/fragments/page/local-validate.fragment.hbs }} | ||
{{/ if }} | ||
|
||
setIsLoading(true); | ||
|
||
try { | ||
const res = await {{ getServiceImplForPage page }}.update({{# unless page.dataElement.isAccess }}{ __signedIdentifier: signedIdentifier! }, {{/ unless }}payloadDiff.current); | ||
|
||
if (res) { | ||
enqueueSnackbar(t('judo.action.save.success', { defaultValue: 'Changes saved' }), { | ||
variant: 'success', | ||
...toastConfig.success, | ||
}); | ||
setValidation(new Map<keyof {{ classDataName (getReferenceClassType page) '' }}, string>()); | ||
{{# with (getRefreshActionDefinitionForContainer page.container) as |actionDefinition| }} | ||
await actions.{{ simpleActionDefinitionName actionDefinition }}!(pageQueryCustomizer); | ||
{{/ with }} | ||
setEditMode(false); | ||
} | ||
} catch (error) { | ||
handleUpdateError(error, { setValidation }, data); | ||
} finally { | ||
setIsLoading(false); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters