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

On opening component view check the capabilities #6

Open
dvayanu opened this issue Dec 11, 2023 · 0 comments
Open

On opening component view check the capabilities #6

dvayanu opened this issue Dec 11, 2023 · 0 comments
Assignees

Comments

@dvayanu
Copy link
Member

dvayanu commented Dec 11, 2023

And depending on the capabilities of the component set the navigation of component view:

Call for capabilities:
{{serverURL}}/api/v2/component/$componentName/capabilities

result:

{
    "success": true,
    "message": null,
    "results": {
        "connectorInfo": true,
        "nowRunning": true,
        "threshold": true,
        "componentInfo": "true",
        "history": "true",
        "accumulators": true,
        "config": true,
        "actions": "true"
    }
}

Only capabilities that are true should be present in the navigation, capabilities that return false should not.

Image

@drRoccat drRoccat self-assigned this Jan 3, 2024
drRoccat pushed a commit that referenced this issue Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants