-
Notifications
You must be signed in to change notification settings - Fork 10
feat: add timed docs to top nav #570
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
base: main
Are you sure you want to change the base?
Conversation
2f4a26f
to
f15114a
Compare
f15114a
to
13f9bdc
Compare
13f9bdc
to
a4385aa
Compare
a4385aa
to
18c6207
Compare
f4a2ffd
to
d342948
Compare
b887296
to
88a69ad
Compare
88a69ad
to
593b203
Compare
@c0rydoras anything else ? |
9d53d35
to
f82a919
Compare
const routes = { | ||
"/attendances": "tracking/attendances", | ||
"/reports": "tracking/timesheet", | ||
"/analysis": "analysis", | ||
"/statistics": "statistics", | ||
"/projects": "projects", | ||
"/users": "users", | ||
"/": "tracking/activities", | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could import these from the service, that way we have less redundancy (you'll have to export ROUTE_DOCS_MAPPING
for that)
frontend/app/services/docs.js
Outdated
} | ||
|
||
get docsURL() { | ||
return ROUTE_DOCS_MAPPING[this.router.currentRouteName] || ""; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick
return ROUTE_DOCS_MAPPING[this.router.currentRouteName] || ""; | |
return ROUTE_DOCS_MAPPING[this.router.currentRouteName] ?? ""; |
a45a15b
to
d928843
Compare
No description provided.