Lines 16-22
Link Here
|
16 |
<button |
16 |
<button |
17 |
type="button" |
17 |
type="button" |
18 |
class="btn-close" |
18 |
class="btn-close" |
19 |
@click="closeModal" |
19 |
data-bs-dismiss="modal" |
20 |
aria-label="Close" |
20 |
aria-label="Close" |
21 |
></button> |
21 |
></button> |
22 |
</div> |
22 |
</div> |
Lines 60-66
Link Here
|
60 |
<button |
60 |
<button |
61 |
class="btn btn-default deny cancel" |
61 |
class="btn btn-default deny cancel" |
62 |
type="button" |
62 |
type="button" |
63 |
@click="closeModal" |
63 |
data-bs-dismiss="modal" |
64 |
> |
64 |
> |
65 |
<i class="fa fa-times"></i> Cancel |
65 |
<i class="fa fa-times"></i> Cancel |
66 |
</button> |
66 |
</button> |
Lines 522-528
export default {
Link Here
|
522 |
) |
522 |
) |
523 |
}, |
523 |
}, |
524 |
selectTrainForCopy(train_item_id) { |
524 |
selectTrainForCopy(train_item_id) { |
525 |
$("#copy_item_to_train").show() |
525 |
$("#copy_item_to_train").modal("show") |
526 |
this.train_item_id_to_copy = train_item_id |
526 |
this.train_item_id_to_copy = train_item_id |
527 |
}, |
527 |
}, |
528 |
copyItem(event) { |
528 |
copyItem(event) { |
Lines 537-543
export default {
Link Here
|
537 |
.then( |
537 |
.then( |
538 |
success => { |
538 |
success => { |
539 |
this.setMessage(this.$__("Item copied successfully.")) |
539 |
this.setMessage(this.$__("Item copied successfully.")) |
540 |
this.closeModal() |
540 |
$("#copy_item_to_train").modal("hide") |
541 |
}, |
541 |
}, |
542 |
error => { |
542 |
error => { |
543 |
this.setWarning( |
543 |
this.setWarning( |
Lines 548-556
export default {
Link Here
|
548 |
} |
548 |
} |
549 |
) |
549 |
) |
550 |
}, |
550 |
}, |
551 |
closeModal() { |
|
|
552 |
$("#copy_item_to_train").hide() |
553 |
}, |
554 |
clearAll() { |
551 |
clearAll() { |
555 |
this.selected_items = [] |
552 |
this.selected_items = [] |
556 |
if (this.item_table.display) { |
553 |
if (this.item_table.display) { |
557 |
- |
|
|