Bulk Add always creates draft instead of auto-draft. #200.
This commit is contained in:
parent
392969e66f
commit
a58a84f6d4
|
@ -220,7 +220,7 @@ export default {
|
||||||
// Creates draft Item
|
// Creates draft Item
|
||||||
let data = {
|
let data = {
|
||||||
collection_id: this.collectionId,
|
collection_id: this.collectionId,
|
||||||
status: 'auto-draft',
|
status: 'draft',
|
||||||
title: file.name
|
title: file.name
|
||||||
};
|
};
|
||||||
this.sendItem(data)
|
this.sendItem(data)
|
||||||
|
@ -286,14 +286,8 @@ export default {
|
||||||
collectionID: this.collectionId
|
collectionID: this.collectionId
|
||||||
}).then((group) => {
|
}).then((group) => {
|
||||||
let sequenceId = group.id;
|
let sequenceId = group.id;
|
||||||
this.setStatusInBulk({
|
this.isCreatingSequenceEditGroup = false;
|
||||||
groupID: sequenceId,
|
this.$router.push(this.$routerHelper.getCollectionSequenceEditPath(this.collectionId, sequenceId, 1));
|
||||||
collectionID: this.collectionId,
|
|
||||||
bodyParams: { value: 'draft' }
|
|
||||||
}).then(() => {
|
|
||||||
this.isCreatingSequenceEditGroup = true;
|
|
||||||
this.$router.push(this.$routerHelper.getCollectionSequenceEditPath(this.collectionId, sequenceId, 1));
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
openBulkEditionModal() {
|
openBulkEditionModal() {
|
||||||
|
|
Loading…
Reference in New Issue