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

dynamically set tab navbar (based on API Namespace data from server) #1

Open
donrestarone opened this issue Jun 26, 2022 · 2 comments

Comments

@donrestarone
Copy link
Contributor

donrestarone commented Jun 26, 2022

when the app loads it should make a call to Violet Rails API Namespace (based on the app root) to the VioletRailsAppContext namespace which returns an object that describes how to set the navigation in the app (currently it is hard-coded).

@donrestarone
Copy link
Contributor Author

Screen Shot 2023-02-15 at 5 32 03 PM

{"data":{"id":"23","type":"api_namespace","attributes":{"id":23,"created_at":"2023-02-15T22:31:07.801Z","updated_at":"2023-02-15T22:31:07.801Z","properties":{"tab_navigation":[{"path":"/blog","label":"blog"},{"path":"/forum","label":"forum"}]},"version":1,"slug":"mobile_client_configuration","name":"mobile_client_configuration","namespace_type":"create-read-update-delete","requires_authentication":false,"non_primitive_properties":[]}}}

@donrestarone
Copy link
Contributor Author

donrestarone commented Feb 27, 2023

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

1 participant