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