Skip to content

Commit

Permalink
Merge pull request #2949 from threefoldtech/development_2.6_add__mine…
Browse files Browse the repository at this point in the history
…_filter
  • Loading branch information
maayarosama authored Jun 11, 2024
2 parents f36b8ff + d96641b commit 19da6d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/playground/src/views/nodes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
<TfFilter query-route="ipv6" v-model="filters.ipv6">
<v-switch color="primary" inset label="IPv6" v-model="filters.ipv6" density="compact" hide-details />
</TfFilter>
<TfFilter query-route="mine" v-model="filters.mine" v-if="profileManager.profile">
<v-switch color="primary" inset label="Mine" v-model="filters.mine" density="compact" hide-details />
</TfFilter>

<TfFilter class="mt-4" query-route="node-status" v-model="filters.status">
<v-select
Expand Down Expand Up @@ -521,6 +524,7 @@ export default {
numGpu: "",
rentable: false,
ipv6: false,
mine: false,
});
const loading = ref<boolean>(true);
Expand Down Expand Up @@ -570,6 +574,7 @@ export default {
rentable: filters.value.rentable && profileManager.profile ? filters.value.rentable : undefined,
availableFor: filters.value.rentable && profileManager.profile ? profileManager.profile.twinId : undefined,
hasIPv6: filters.value.ipv6,
rentedBy: filters.value.mine && profileManager.profile ? profileManager.profile.twinId : undefined,
},
{ loadFarm: true },
);
Expand Down

0 comments on commit 19da6d3

Please sign in to comment.