PMCORE-3272

This commit is contained in:
Henry Jordan
2021-09-01 20:14:53 +00:00
parent 31a38f2d32
commit a32bcc7633

View File

@@ -27,6 +27,7 @@
</template>
<script>
import eventBus from '../../home/EventBus/eventBus';
export default {
name: "Ellipsis",
props: {
@@ -37,6 +38,12 @@ export default {
showActions: false
}
},
mounted(){
let that = this;
eventBus.$on('ellipsis::hide', (data) => {
that.hideActionButtons();
});
},
methods: {
/**
* Callback function from parent
@@ -51,8 +58,10 @@ export default {
*/
showActionButtons() {
var i,
showOld = this.showActions,
elelemts;
this.showActions = !this.showActions;
eventBus.$emit("ellipsis::hide",{});
this.showActions = !showOld;
if (this.showActions) {
if (this.$parent.Row !== undefined) {
for (i = 0; i < this.$parent.$parent.$parent.$children.length -1 ; i++){