-
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
const dedicatedModel = computed({ | ||
get: () => !!props.dedicated, | ||
set: val => emit("update:dedicated", 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.
👏 its greate to use writable computed here thank you ya Samar
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.
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