Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-phase My Node switch and vars across the nodes page #3551

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions packages/playground/src/views/nodes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,15 @@
<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="myNodes" v-model="filters.myNodes" v-if="profileManager.profile">
<v-switch color="primary" inset label="My Nodes" v-model="filters.myNodes" density="compact" hide-details />
<TfFilter query-route="myRentedNodes" v-model="filters.myRentedNodes" v-if="profileManager.profile">
<v-switch
color="primary"
inset
label="My Rented Nodes"
v-model="filters.myRentedNodes"
density="compact"
hide-details
/>
</TfFilter>

<VTooltip
Expand Down Expand Up @@ -537,7 +544,7 @@ export default {
numGpu: "",
rentable: false,
ipv6: false,
myNodes: false,
myRentedNodes: false,
});
const oldNodeStatus = ref();
watch(
Expand Down Expand Up @@ -597,7 +604,7 @@ export default {
numGpu: +filters.value.numGpu || undefined,
rentable: filters.value.rentable ? filters.value.rentable : undefined,
hasIPv6: filters.value.ipv6 ? filters.value.ipv6 : undefined,
rentedBy: filters.value.myNodes && profileManager.profile ? profileManager.profile.twinId : undefined,
rentedBy: filters.value.myRentedNodes && profileManager.profile ? profileManager.profile.twinId : undefined,
},
{ loadFarm: true },
);
Expand Down
Loading