This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
3
How to handle different UI for different user roles
Post Body
So, I've got admins and users in my app. How would you handle the differences in the UI between roles without plaguing the codebase with v-if statements? Should I just create different components like "AdminNavigation" and "UserNavigation" and then a "Navigation" component that reads the role and gives the correct one? Are there any other patterns for this?
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 3 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/vuejs/comme...