diff --git a/resources/assets/js/components/utils/ellipsis.vue b/resources/assets/js/components/utils/ellipsis.vue
new file mode 100644
index 000000000..8e26224b9
--- /dev/null
+++ b/resources/assets/js/components/utils/ellipsis.vue
@@ -0,0 +1,183 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/assets/js/home/Draft.vue b/resources/assets/js/home/Draft.vue
index f5cea80cd..f5ac64495 100644
--- a/resources/assets/js/home/Draft.vue
+++ b/resources/assets/js/home/Draft.vue
@@ -34,9 +34,9 @@
{{ props.row.PRIORITY }}
-
+
+
+
@@ -50,6 +50,7 @@ import CasesFilter from "../components/search/CasesFilter";
import TaskCell from "../components/vuetable/TaskCell.vue";
import api from "./../api/index";
import utils from "./../utils/utils";
+import Ellipsis from '../components/utils/ellipsis.vue';
export default {
name: "Draft",
@@ -59,6 +60,7 @@ export default {
ModalNewRequest,
TaskCell,
CasesFilter,
+ Ellipsis,
},
props: ["defaultOption", "filters"],
data() {
@@ -120,7 +122,8 @@ export default {
"DRAFT": this.$i18n.t("ID_IN_DRAFT"),
"PAUSED": this.$i18n.t("ID_PAUSED"),
"UNASSIGNED": this.$i18n.t("ID_UNASSIGNED")
- }
+ },
+ dataEllipsis: null,
};
},
created() {
@@ -128,6 +131,7 @@ export default {
},
mounted() {
this.openDefaultCase();
+ this.setDataEllipsis();
},
watch: {},
computed: {
@@ -323,6 +327,34 @@ export default {
*/
updateView(){
this.$refs["vueTable"].getData();
+ },
+ /**
+ * set data by default in the ellipsis component
+ */
+ setDataEllipsis() {
+ this.dataEllipsis = {
+ showNote: false,
+ showReassign: false,
+ showPause: false,
+ showPlay: false,
+ showOpen: false,
+ showClaim: false
+ }
+ },
+ /**
+ *
+ */
+ updateDataEllipsis(data) {
+ this.dataEllipsis = {
+ APP_UID: data.APP_UID || "",
+ PRO_UID: data.PRO_UID || "",
+ showOpen: true,
+ showNote: true,
+ showPlay: false,
+ showReassign: false,
+ showPause: false,
+ showClaim: false
+ };
}
},
};
diff --git a/resources/assets/js/home/Paused.vue b/resources/assets/js/home/Paused.vue
index ce883aa90..0d1793ed0 100644
--- a/resources/assets/js/home/Paused.vue
+++ b/resources/assets/js/home/Paused.vue
@@ -44,12 +44,9 @@
{{ props.row.PRIORITY }}
-
+
+
+
@@ -65,6 +62,7 @@ import TaskCell from "../components/vuetable/TaskCell.vue";
import ModalUnpauseCase from "./modal/ModalUnpauseCase.vue";
import api from "./../api/index";
import utils from "./../utils/utils";
+import Ellipsis from '../components/utils/ellipsis.vue';
export default {
name: "Paused",
@@ -75,6 +73,7 @@ export default {
TaskCell,
ModalUnpauseCase,
CasesFilter,
+ Ellipsis,
},
props: ["defaultOption", "filters"],
data() {
@@ -142,7 +141,8 @@ export default {
"DRAFT": this.$i18n.t("ID_IN_DRAFT"),
"PAUSED": this.$i18n.t("ID_PAUSED"),
"UNASSIGNED": this.$i18n.t("ID_UNASSIGNED")
- }
+ },
+ dataEllipsis: null,
};
},
created() {
@@ -151,6 +151,7 @@ export default {
mounted() {
// force to open case
this.openDefaultCase();
+ this.setDataEllipsis();
},
watch: {},
computed: {
@@ -357,6 +358,34 @@ export default {
*/
updateView(){
this.$refs["vueTable"].getData();
+ },
+ /**
+ * set data by default in the ellipsis component
+ */
+ setDataEllipsis() {
+ this.dataEllipsis = {
+ showNote: false,
+ showReassign: false,
+ showPause: false,
+ showPlay: false,
+ showOpen: false,
+ showClaim: false
+ }
+ },
+ /**
+ *
+ */
+ updateDataEllipsis(data) {
+ this.dataEllipsis = {
+ APP_UID: data.APP_UID || "",
+ PRO_UID: data.PRO_UID || "",
+ showOpen: false,
+ showNote: true,
+ showPlay: true,
+ showReassign: true,
+ showPause: false,
+ showClaim: false
+ };
}
},
};
diff --git a/resources/assets/js/home/Todo.vue b/resources/assets/js/home/Todo.vue
index 4b0ae54b8..578dd0040 100644
--- a/resources/assets/js/home/Todo.vue
+++ b/resources/assets/js/home/Todo.vue
@@ -44,9 +44,9 @@
{{ props.row.PRIORITY }}
-
+
+
+
@@ -60,6 +60,7 @@ import TaskCell from "../components/vuetable/TaskCell.vue";
import CasesFilter from "../components/search/CasesFilter";
import api from "./../api/index";
import utils from "./../utils/utils";
+import Ellipsis from '../components/utils/ellipsis.vue';
export default {
name: "Todo",
@@ -69,6 +70,7 @@ export default {
ModalNewRequest,
TaskCell,
CasesFilter,
+ Ellipsis,
},
props: ["defaultOption", "filters"],
data() {
@@ -136,7 +138,8 @@ export default {
"DRAFT": this.$i18n.t("ID_IN_DRAFT"),
"PAUSED": this.$i18n.t("ID_PAUSED"),
"UNASSIGNED": this.$i18n.t("ID_UNASSIGNED")
- }
+ },
+ dataEllipsis: null
};
},
created() {
@@ -145,6 +148,7 @@ export default {
mounted() {
// force to open case
this.openDefaultCase();
+ this.setDataEllipsis();
},
watch: {},
computed: {
@@ -348,6 +352,34 @@ export default {
*/
updateView(){
this.$refs["vueTable"].getData();
+ },
+ /**
+ * set data by default in the ellipsis component
+ */
+ setDataEllipsis() {
+ this.dataEllipsis = {
+ showNote: false,
+ showReassign: false,
+ showPause: false,
+ showPlay: false,
+ showOpen: false,
+ showClaim: false
+ }
+ },
+ /**
+ *
+ */
+ updateDataEllipsis(data) {
+ this.dataEllipsis = {
+ APP_UID: data.APP_UID || "",
+ PRO_UID: data.PRO_UID || "",
+ showOpen: true,
+ showNote: true,
+ showPlay: false,
+ showReassign: true,
+ showPause: true,
+ showClaim: false
+ };
}
},
};
diff --git a/resources/assets/js/home/Unassigned.vue b/resources/assets/js/home/Unassigned.vue
index bff7c677e..08d71f86d 100644
--- a/resources/assets/js/home/Unassigned.vue
+++ b/resources/assets/js/home/Unassigned.vue
@@ -41,9 +41,9 @@
{{ props.row.PRIORITY }}
-
+
+
+
@@ -59,6 +59,7 @@ import CasesFilter from "../components/search/CasesFilter";
import ModalClaimCase from "./modal/ModalClaimCase.vue";
import api from "./../api/index";
import utils from "./../utils/utils";
+import Ellipsis from '../components/utils/ellipsis.vue';
export default {
name: "Unassigned",
@@ -69,6 +70,7 @@ export default {
TaskCell,
ModalClaimCase,
CasesFilter,
+ Ellipsis,
},
props: ["defaultOption", "filters"],
data() {
@@ -137,11 +139,13 @@ export default {
"DRAFT": this.$i18n.t("ID_IN_DRAFT"),
"PAUSED": this.$i18n.t("ID_PAUSED"),
"UNASSIGNED": this.$i18n.t("ID_UNASSIGNED")
- }
+ },
+ dataEllipsis: null,
};
},
mounted() {
this.initFilters();
+ this.setDataEllipsis();
},
watch: {},
computed: {
@@ -328,6 +332,34 @@ export default {
*/
updateView(){
this.$refs["vueTable"].getData();
+ },
+ /**
+ * set data by default in the ellipsis component
+ */
+ setDataEllipsis() {
+ this.dataEllipsis = {
+ showNote: false,
+ showReassign: false,
+ showPause: false,
+ showPlay: false,
+ showOpen: false,
+ showClaim: false
+ }
+ },
+ /**
+ *
+ */
+ updateDataEllipsis(data) {
+ this.dataEllipsis = {
+ APP_UID: data.APP_UID || "",
+ PRO_UID: data.PRO_UID || "",
+ showOpen: false,
+ showNote: true,
+ showPlay: false,
+ showReassign: false,
+ showPause: true,
+ showClaim: true
+ };
}
},
};