-
Notifications
You must be signed in to change notification settings - Fork 8
Group all toggles in one component #4161
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
base: development
Are you sure you want to change the base?
Conversation
- Fix manual import in caprover
function onUpdateRentedByMe(val: boolean | null) { | ||
rentedByMeModel.value = !!val; | ||
} | ||
function onUpdateDedicated(val: boolean | null) { | ||
dedicatedModel.value = !!val; | ||
} | ||
function onUpdateCertified(val: boolean | null) { | ||
certifiedModel.value = !!val; | ||
} | ||
function onUpdateHasGPU(val: boolean | null) { | ||
hasGPUModel.value = !!val; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think inline change the values in template would be better, Those founciton are not used anywhere else
example :
:model-value="(val)=> gpuModule = val"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did, but it caused type-check errors, let me try adding types there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@0oM4R I tried it, but it caused the same error I mentioned, so I returned to the previous solution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<v-switch
color="primary"
inset
label="Rented By Me"
:model-value="rentedByMeModel"
hide-details
@update:model-value="(val) => rentedByMeModel = !!val"
/>
this works fine with me without any errors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@samaradel please check this comment
packages/playground/src/components/node_selector/TfSelectionDetails.vue
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i still see many unrelated changes please make sure to restore the original files from development
function onUpdateRentedByMe(val: boolean | null) { | ||
rentedByMeModel.value = !!val; | ||
} | ||
function onUpdateDedicated(val: boolean | null) { | ||
dedicatedModel.value = !!val; | ||
} | ||
function onUpdateCertified(val: boolean | null) { | ||
certifiedModel.value = !!val; | ||
} | ||
function onUpdateHasGPU(val: boolean | null) { | ||
hasGPUModel.value = !!val; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@samaradel please check this comment
@0oM4R already did, I merged the development branch and ran |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@samaradel
you can restore the unrelated changes by
git checkout origin/development <pathToTheFile>
This will get the version that is on the development branch
also please make sure to check the other comments
@0oM4R I did, and it's something in linting rules, as it keeps changing when I commit |
so this is due to the pre-commit script, as it sees the unrelated files you just reverted as changed files then apply liniting on it feel free to reach me out if any help needed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check if @amiraabouhadid still has any comments
Description
Group all toggles in one component
Changes
Group all toggles in one component across all solutions
Related Issues
Tested Scenarios
RentedByMe
,Dedicated
, andCertified
if they do their job correctlyDocumentation PR
For UI changes, Please provide the Documentation PR on info_grid
To consider
Preliminary Checks:
UI Checks:
Code Quality Checks:
Testing Checklist
General Checklist