PMCORE-3272
This commit is contained in:
@@ -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++){
|
||||
|
||||
Reference in New Issue
Block a user