Skip to content

Commit

Permalink
Merge branch 'hotfix/24.06.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
cslzchen committed Sep 13, 2024
2 parents 9d03a1a + a14d701 commit 9b0a0a7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
key: cached_node_modules_${{ secrets.CACHE_VERSION }}_${{ hashFiles('**/yarn.lock') }}
restore-keys: cached_node_modules_${{ secrets.CACHE_VERSION }}_
- run: yarn build:test
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: dist
path: ./dist
Expand All @@ -67,7 +67,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: dist
path: ./dist
Expand All @@ -91,7 +91,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: dist
path: ./dist
Expand All @@ -115,7 +115,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: dist
path: ./dist
Expand All @@ -139,7 +139,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: dist
path: ./dist
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,18 @@ export default class PreprintStateMachine extends Component<StateMachineArgs>{
@waitFor
public async onSubmit(): Promise<void> {
this.args.resetPageDirty();
if (this.provider.reviewsWorkflow) {
const reviewAction = this.store.createRecord('review-action', {
actionTrigger: 'submit',
target: this.preprint,
});
await reviewAction.save();
} else {
this.preprint.isPublished = true;
await this.preprint.save();
if (!this.isEditFlow) {
if (this.provider.reviewsWorkflow) {
const reviewAction = this.store.createRecord('review-action', {
actionTrigger: 'submit',
target: this.preprint,
});
await reviewAction.save();
} else {
this.preprint.isPublished = true;
await this.preprint.save();
}

}

await this.preprint.reload();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-osf-web",
"version": "24.06.0",
"version": "24.06.1",
"private": true,
"description": "Ember front-end for the Open Science Framework",
"homepage": "https://github.com/CenterForOpenScience/ember-osf-web#readme",
Expand Down

0 comments on commit 9b0a0a7

Please sign in to comment.