Revert "Bug 41916: Clean-up obsolete code"
This reverts commit b016ae79a0.
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
This commit is contained in:
parent
5d1449429e
commit
ff26d0a92e
|
|
@ -926,6 +926,25 @@ export default {
|
|||
},
|
||||
];
|
||||
|
||||
const additionalToolbarButtons = (resource, componentData) => {
|
||||
const buttons = {
|
||||
form: [
|
||||
{
|
||||
title: $__("Submit"),
|
||||
form: componentData.resourceForm,
|
||||
},
|
||||
{
|
||||
to: {
|
||||
name: "SIP2AccountsList",
|
||||
},
|
||||
title: $__("Cancel"),
|
||||
cssClass: "btn btn-link",
|
||||
},
|
||||
],
|
||||
};
|
||||
return buttons;
|
||||
};
|
||||
|
||||
const baseResource = useBaseResource({
|
||||
resourceName: "account",
|
||||
nameAttr: "login_id",
|
||||
|
|
@ -952,6 +971,7 @@ export default {
|
|||
APIClient.sip2.httpClient._baseURL + "accounts",
|
||||
options: { embed: "institution" },
|
||||
},
|
||||
additionalToolbarButtons,
|
||||
stickyToolbar: ["Form"],
|
||||
embedded: props.embedded,
|
||||
formGroupsDisplayMode: "accordion",
|
||||
|
|
|
|||
Loading…
Reference in New Issue