Bulk Add always creates draft instead of auto-draft. #200.

This commit is contained in:
Mateus Machado Luna 2019-12-16 15:26:38 -03:00
parent 392969e66f
commit a58a84f6d4
1 changed files with 3 additions and 9 deletions

View File

@ -220,7 +220,7 @@ export default {
// Creates draft Item
let data = {
collection_id: this.collectionId,
status: 'auto-draft',
status: 'draft',
title: file.name
};
this.sendItem(data)
@ -286,14 +286,8 @@ export default {
collectionID: this.collectionId
}).then((group) => {
let sequenceId = group.id;
this.setStatusInBulk({
groupID: sequenceId,
collectionID: this.collectionId,
bodyParams: { value: 'draft' }
}).then(() => {
this.isCreatingSequenceEditGroup = true;
this.$router.push(this.$routerHelper.getCollectionSequenceEditPath(this.collectionId, sequenceId, 1));
});
this.isCreatingSequenceEditGroup = false;
this.$router.push(this.$routerHelper.getCollectionSequenceEditPath(this.collectionId, sequenceId, 1));
});
},
openBulkEditionModal() {