File tree Expand file tree Collapse file tree 3 files changed +18
-15
lines changed
app/preprints/-components/submit/preprint-state-machine Expand file tree Collapse file tree 3 files changed +18
-15
lines changed Original file line number Diff line number Diff line change 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
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
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
Original file line number Diff line number Diff 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 ( ) ;
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments