mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 20:24:43 +08:00
b00968fd55
* Implement protocol status bar functionality [SCI-6760] * Inline edit interactions, checklist name edit improvements [SCI-6786]
27 lines
514 B
JavaScript
27 lines
514 B
JavaScript
export default {
|
|
data() {
|
|
return {
|
|
confirmingDelete: false
|
|
};
|
|
},
|
|
methods: {
|
|
showDeleteModal() {
|
|
this.confirmingDelete = true;
|
|
},
|
|
closeDeleteModal() {
|
|
this.confirmingDelete = false;
|
|
},
|
|
deleteComponent() {
|
|
$.ajax({
|
|
url: this.element.attributes.orderable.urls.delete_url,
|
|
type: 'DELETE',
|
|
success: (result) => {
|
|
this.$emit(
|
|
'component:delete',
|
|
result.data
|
|
);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
};
|