Skip to content

Commit

Permalink
Fix save for later issue
Browse files Browse the repository at this point in the history
  • Loading branch information
salmanm2003 authored Nov 18, 2024
1 parent bad6bf3 commit 8f1b0dc
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
:item="item"
:other-label="otherLabel"
:stage-id="stageId"
:assoc-type="assocType"
:assoc-id="assocId"
@cancel="cancelUpload"
@edit="edit"
@remove="remove"
Expand All @@ -45,7 +47,7 @@
:filename-locale="primaryLocale"
:files="items"
:options="options"
:query-params="{fileStage}"
:query-params="{fileStage, assocType, assocId}"
:upload-progress-label="uploadProgressLabel"
@updated:files="setFiles"
/>
Expand Down Expand Up @@ -165,6 +167,13 @@ export default {
type: String,
required: true,
},
assocType: {
type: Number,
default: null
},
assocId: {
type: Number,
},
},
emits: [
/** Emitted when a prop should be changed. Payload: `(id, newProps)` */
Expand Down Expand Up @@ -259,7 +268,7 @@ export default {
actions: [
{
label: this.t('common.yes'),
isWarnable: true,
isPrimary: true,
callback: (close) => {
$.ajax({
url: this.apiUrl + '/' + item.id + '?stageId=' + this.stageId,
Expand All @@ -281,10 +290,10 @@ export default {
},
{
label: this.t('common.no'),
isWarnable: true,
callback: (close) => close(),
},
],
modalStyle: 'negative',
});
},
Expand Down

0 comments on commit 8f1b0dc

Please sign in to comment.