Skip to content

Commit

Permalink
DEV: Spike on using new API
Browse files Browse the repository at this point in the history
  • Loading branch information
tgxworld committed Aug 31, 2023
1 parent 061adfe commit 81b1e7d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion javascripts/discourse/components/custom-header-links.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{#if this.shouldShow}}
<ul
class="custom-header-links
{{if @scrolledTopic 'custom-header-links--hide-links'}}"
{{if @outletArgs.attrs.topic 'custom-header-links--hide-links'}}"
>
{{#each this.links as |link|}}
<li
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { apiInitializer } from "discourse/lib/api";
import CustomHeaderLinks from "../components/custom-header-links";

export default apiInitializer("1.9.0", (api) => {
api.renderInPluginOutlet("before-header-panel", CustomHeaderLinks);
});

0 comments on commit 81b1e7d

Please sign in to comment.