This plugin adds a "invert selection" button when adding models from the auto-fetched list of the providers, so only the ones we already have are checked.
thumbnail
INSTALLATION
- clone this repo, then copy its content into
/home/dshuser/.dsh/profiles/<profile>/plugins/models-invert-selection
- add the plugin to the
<profile>/package.json by appending it to the dependencies and bundle like in this example:
{
"name": "dsh-profile-web",
"private": true,
"dependencies": {
"dsh-ui-models-invert": "file:./plugins/models-invert-selection"
},
"dsh": {
"profile": {
"bundles": [
"dsh-ui-models-invert-selection"
]
}
}
}
- from the profile's directory i.e.
/home/dshuser/.dsh/profiles/web, we run pnpm install, be aware that you need to be the correct user, root might fail.
- restart the container/service
REMOVAL
- delete the
/home/dshuser/.dsh/profiles/<profile>/plugins/models-invert-selection
- remove the relative lines from the
<profile>/package.json
- rerun the
pnpm install as we did in the installation
- restart the container/service