Merged in feature/PMCORE-3103 (pull request #8039)
PMCORE-3103 Approved-by: Rodrigo Quelca
This commit is contained in:
@@ -10,8 +10,8 @@
|
|||||||
ref="table"
|
ref="table"
|
||||||
>
|
>
|
||||||
<div slot="actions" slot-scope="props">
|
<div slot="actions" slot-scope="props">
|
||||||
<div>
|
<div @click="updateDataEllipsis(props.row)">
|
||||||
<ellipsis v-if="dataEllipsis" :data="dataEllipsis"> </ellipsis>
|
<ellipsis ref="ellipsis" v-if="dataEllipsis" :data="dataEllipsis"> </ellipsis>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div slot="owner" slot-scope="props">
|
<div slot="owner" slot-scope="props">
|
||||||
@@ -41,19 +41,9 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
dataEllipsis: {
|
dataEllipsis: {
|
||||||
buttons: {
|
buttons: {}
|
||||||
open: {
|
},
|
||||||
name: "edit",
|
showEllipsis: false,
|
||||||
icon: "far fa-edit",
|
|
||||||
fn: function() {console.log("Edit");}
|
|
||||||
},
|
|
||||||
note: {
|
|
||||||
name: "case note",
|
|
||||||
icon: "far fa-comments",
|
|
||||||
fn: function() {console.log("comments");}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
},
|
|
||||||
newList: {
|
newList: {
|
||||||
title: this.$i18n.t("New List"),
|
title: this.$i18n.t("New List"),
|
||||||
class: "btn-success",
|
class: "btn-success",
|
||||||
@@ -191,7 +181,60 @@ export default {
|
|||||||
showModalDelete(data) {
|
showModalDelete(data) {
|
||||||
this.$refs["modal-delete-list"].data = data;
|
this.$refs["modal-delete-list"].data = data;
|
||||||
this.$refs["modal-delete-list"].show();
|
this.$refs["modal-delete-list"].show();
|
||||||
|
},
|
||||||
|
showPreview(data) {
|
||||||
|
|
||||||
|
},
|
||||||
|
editCustomCaseList(data) {
|
||||||
|
|
||||||
|
},
|
||||||
|
downloadCaseList(data) {
|
||||||
|
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Show options in the ellipsis
|
||||||
|
* @param {objec} data
|
||||||
|
*/
|
||||||
|
updateDataEllipsis(data) {
|
||||||
|
let that = this;
|
||||||
|
this.showEllipsis = !this.showEllipsis;
|
||||||
|
if (this.showEllipsis) {
|
||||||
|
this.dataEllipsis = {
|
||||||
|
buttons: {
|
||||||
|
open: {
|
||||||
|
name: "delete",
|
||||||
|
icon: "far fa-trash-alt",
|
||||||
|
color: "red",
|
||||||
|
fn: function() {
|
||||||
|
that.showModalDelete(data);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
note: {
|
||||||
|
name: "edit",
|
||||||
|
icon: "far fa-edit",
|
||||||
|
fn: function() {
|
||||||
|
that.editCustomCaseList(data);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
reassign: {
|
||||||
|
name: "download",
|
||||||
|
icon: "fas fa-arrow-circle-down",
|
||||||
|
fn: function() {
|
||||||
|
that.downloadCaseList(data);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
pause: {
|
||||||
|
name: "preview",
|
||||||
|
icon: "fas fa-tv",
|
||||||
|
color: "green",
|
||||||
|
fn: function() {
|
||||||
|
that.showPreview(data);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
variant="outline-info"
|
variant="outline-info"
|
||||||
@click="executeFunction(item.fn)"
|
@click="executeFunction(item.fn)"
|
||||||
>
|
>
|
||||||
<i :class="item.icon"></i>
|
<i class="custom-icon" :class="item.icon" v-bind:style="{color: item.color}"></i>
|
||||||
</b-button>
|
</b-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user