Skip to content

Commit 5551456

Browse files
committed
Merge tag '24.06.1' into develop
Fix submit button in preprints edit flow
2 parents 7026d65 + 9b0a0a7 commit 5551456

File tree

3 files changed

+18
-15
lines changed

3 files changed

+18
-15
lines changed

.github/workflows/CI.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
key: cached_node_modules_${{ secrets.CACHE_VERSION }}_${{ hashFiles('**/yarn.lock') }}
4343
restore-keys: cached_node_modules_${{ secrets.CACHE_VERSION }}_
4444
- run: yarn build:test
45-
- uses: actions/upload-artifact@v2
45+
- uses: actions/upload-artifact@v4
4646
with:
4747
name: dist
4848
path: ./dist
@@ -67,7 +67,7 @@ jobs:
6767
steps:
6868
- uses: actions/checkout@v2
6969
- uses: volta-cli/action@v1
70-
- uses: actions/download-artifact@v2
70+
- uses: actions/download-artifact@v4
7171
with:
7272
name: dist
7373
path: ./dist
@@ -91,7 +91,7 @@ jobs:
9191
steps:
9292
- uses: actions/checkout@v2
9393
- uses: volta-cli/action@v1
94-
- uses: actions/download-artifact@v2
94+
- uses: actions/download-artifact@v4
9595
with:
9696
name: dist
9797
path: ./dist
@@ -115,7 +115,7 @@ jobs:
115115
steps:
116116
- uses: actions/checkout@v2
117117
- uses: volta-cli/action@v1
118-
- uses: actions/download-artifact@v2
118+
- uses: actions/download-artifact@v4
119119
with:
120120
name: dist
121121
path: ./dist
@@ -139,7 +139,7 @@ jobs:
139139
steps:
140140
- uses: actions/checkout@v2
141141
- uses: volta-cli/action@v1
142-
- uses: actions/download-artifact@v2
142+
- uses: actions/download-artifact@v4
143143
with:
144144
name: dist
145145
path: ./dist

app/preprints/-components/submit/preprint-state-machine/component.ts

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -201,15 +201,18 @@ export default class PreprintStateMachine extends Component<StateMachineArgs>{
201201
@waitFor
202202
public async onSubmit(): Promise<void> {
203203
this.args.resetPageDirty();
204-
if (this.provider.reviewsWorkflow) {
205-
const reviewAction = this.store.createRecord('review-action', {
206-
actionTrigger: 'submit',
207-
target: this.preprint,
208-
});
209-
await reviewAction.save();
210-
} else {
211-
this.preprint.isPublished = true;
212-
await this.preprint.save();
204+
if (!this.isEditFlow) {
205+
if (this.provider.reviewsWorkflow) {
206+
const reviewAction = this.store.createRecord('review-action', {
207+
actionTrigger: 'submit',
208+
target: this.preprint,
209+
});
210+
await reviewAction.save();
211+
} else {
212+
this.preprint.isPublished = true;
213+
await this.preprint.save();
214+
}
215+
213216
}
214217

215218
await this.preprint.reload();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ember-osf-web",
3-
"version": "24.06.0",
3+
"version": "24.06.1",
44
"private": true,
55
"description": "Ember front-end for the Open Science Framework",
66
"homepage": "https://github.com/CenterForOpenScience/ember-osf-web#readme",

0 commit comments

Comments
 (0)