Skip to content

Commit a45a15b

Browse files
committed
refactor: implement the change requests
1 parent 8e63b56 commit a45a15b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

frontend/app/components/topnav.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
<Topnav::LinkTo
9393
@onClick={{fn (mut this.expand) false}}
9494
title="Open Timed documentation for current page"
95-
href={{this.docs.docsEndpoint}}
95+
href={{this.docs.endpoint}}
9696
target="_blank"
9797
data-test-docs-link
9898
>

frontend/app/services/docs.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ const ROUTE_DOCS_MAPPING = {
1616
export default class DocsService extends Service {
1717
@service router;
1818

19-
get docsEndpoint() {
19+
get endpoint() {
2020
return config.docsBaseUrl + this.docsURL;
2121
}
2222

2323
get docsURL() {
24-
return ROUTE_DOCS_MAPPING[this.router.currentRouteName] || "";
24+
return ROUTE_DOCS_MAPPING[this.router.currentRouteName] ?? "";
2525
}
2626
}

0 commit comments

Comments
 (0)