Terminals list refreshes once a teminal is deleted
This commit is contained in:
parent
02d9a1765d
commit
1dad28d2ae
|
@ -50,6 +50,7 @@
|
||||||
<deletePopUp
|
<deletePopUp
|
||||||
:item="scope.row"
|
:item="scope.row"
|
||||||
:type="'terminal'"
|
:type="'terminal'"
|
||||||
|
@success="successfullyDeleted"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -105,6 +106,11 @@ export default {
|
||||||
this.filteredList = this.originaList.filter(function(terminal) {
|
this.filteredList = this.originaList.filter(function(terminal) {
|
||||||
return terminal.name.toLowerCase().includes(searchQuery)
|
return terminal.name.toLowerCase().includes(searchQuery)
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
successfullyDeleted: function(val) {
|
||||||
|
if (val) {
|
||||||
|
this.getList()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue