diff --git a/modules/item/front/descriptor/index.html b/modules/item/front/descriptor/index.html index a84f9eb95..68a7756d9 100644 --- a/modules/item/front/descriptor/index.html +++ b/modules/item/front/descriptor/index.html @@ -83,4 +83,10 @@ - \ No newline at end of file + + + diff --git a/modules/item/front/descriptor/index.js b/modules/item/front/descriptor/index.js index ab901faf5..6da33515a 100644 --- a/modules/item/front/descriptor/index.js +++ b/modules/item/front/descriptor/index.js @@ -59,6 +59,11 @@ class Controller extends Descriptor { this.warehouseFk = null; this.quantity = null; } + + onCloneAccept() { + this.$http.post(`Items/${this.item.id}/clone`) + .then(res => this.$state.go('item.card.tags', {id: res.data.id})); + } } ngModule.vnComponent('vnItemDescriptor', {