@autobusal/account-transactions 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/Manage/Admin.tsx +5 -3
- package/package.json +2 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 1.3.0 (2026-08-29)
|
|
4
|
+
|
|
5
|
+
- Editors offer Save & Close alongside Save & Stay, so correcting a record no longer bounces you back to its list every time (opt-in per page, editing only).
|
|
6
|
+
|
|
7
|
+
All notable changes to `@autobusal/account-transactions` are documented here. This
|
|
8
|
+
project adheres to [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
|
|
9
|
+
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
10
|
+
|
|
11
|
+
## [1.2.0] - 2026-07-25
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- **Recovered as canonical source.** This package was published to npm and
|
|
16
|
+
in active use, but had no source anywhere in this monorepo (no
|
|
17
|
+
`packages/account-transactions` directory, no git history) - the only copy of its
|
|
18
|
+
code existed as the published npm artifact. Recreated here,
|
|
19
|
+
byte-for-byte identical to the published 1.2.0 tarball (verified via
|
|
20
|
+
`diff` against the installed `node_modules/@autobusal/account-transactions`), so it
|
|
21
|
+
can be edited and republished like every other package instead of
|
|
22
|
+
requiring reverse-engineering from `node_modules` or the npm tarball.
|
|
23
|
+
History prior to this point is not recoverable - no git log,
|
|
24
|
+
changelog, or other record of it exists.
|
|
25
|
+
|
|
26
|
+
Authored by Ferjolt Ozuni.
|
package/Manage/Admin.tsx
CHANGED
|
@@ -33,12 +33,14 @@ const Admin = ({ url, t }: Props): JSX.Element => {
|
|
|
33
33
|
return <Navigate to={ url } />;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
const onSave = (data: TransactionData): void => {
|
|
36
|
+
const onSave = (data: TransactionData, stay?: boolean): void => {
|
|
37
37
|
Update(data, {
|
|
38
38
|
onSuccess: () => {
|
|
39
39
|
success(t('transactions.manage.messages.saved', { ns: 'common' }));
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
if (!stay) {
|
|
42
|
+
navigate(url);
|
|
43
|
+
}
|
|
42
44
|
}
|
|
43
45
|
});
|
|
44
46
|
};
|
|
@@ -105,7 +107,7 @@ const Admin = ({ url, t }: Props): JSX.Element => {
|
|
|
105
107
|
pending={ isPending }
|
|
106
108
|
t={ t }
|
|
107
109
|
actions={ [
|
|
108
|
-
'update'
|
|
110
|
+
'update', 'save_stay'
|
|
109
111
|
]}
|
|
110
112
|
onSave={ onSave }
|
|
111
113
|
/>
|