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 // 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() {