diff --git a/packages/playground/src/dashboard/components/public_ips_table.vue b/packages/playground/src/dashboard/components/public_ips_table.vue
index 83d5b9812f..ce0986e008 100644
--- a/packages/playground/src/dashboard/components/public_ips_table.vue
+++ b/packages/playground/src/dashboard/components/public_ips_table.vue
@@ -25,7 +25,7 @@
- (e.target.checked ? selectAllItems() : (selectedItems = []))">
+
@@ -133,13 +133,16 @@ export default {
const toPublicIP = ref();
const gateway = ref();
const isRemoving = ref(false);
- const selectedItems = ref([]);
+ const selectedItems = ref([]);
const items = ref([]);
const publicIpsPag = ref([]);
onMounted(async () => {
await getFarmByID(props.farmId);
});
+ function updateSelectedItems(e: any) {
+ e.target.checked ? selectAllItems() : (selectedItems.value = []);
+ }
function selectAllItems() {
selectedItems.value = publicIps.value as any[];
}
@@ -215,6 +218,7 @@ export default {
showDialogue,
isRemoving,
removeFarmIps,
+ updateSelectedItems,
selectedItems,
loadingIps,
page,