Coming soon - Get a detailed view of why an account is flagged as spam!
view details

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?

Author
Account Strength
100%
Account Age
5 years
Verified Email
Yes
Verified Flair
No
Total Karma
19,157
Link Karma
14,822
Comment Karma
3,572
Profile updated: 5 days ago
Posts updated: 7 months ago

Subreddit

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