Revert "DEV: Switch to new API to render into plugin outlet (#37)" (#39)

This partially reverts commit 87404864d2.

Compatibility issue is causing the theme to break: https://meta.discourse.org/t/-/282144
This commit is contained in:
Alan Guo Xiang Tan 2023-10-16 15:23:33 +08:00 committed by GitHub
parent 87404864d2
commit d3498f70b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 9 deletions

View File

@ -1,3 +1,2 @@
< 3.2.0.beta2-dev: 061adfe5ae20abbb82be711d373894c30987ec75
< 3.2.0.beta1-dev: c344d0f519bbb3660e306c50c0d1aa1a776c5e13
3.1.999: bd0594108a1cfd6c11cb8af218dba9b211b44015 3.1.999: bd0594108a1cfd6c11cb8af218dba9b211b44015
< 3.2.0.beta1-dev: c344d0f519bbb3660e306c50c0d1aa1a776c5e13

View File

@ -1,7 +1,7 @@
{{#if this.shouldShow}} {{#if this.shouldShow}}
<ul <ul
class="custom-header-links class="custom-header-links
{{if @outletArgs.attrs.topic 'custom-header-links--hide-links'}}" {{if @scrolledTopic 'custom-header-links--hide-links'}}"
> >
{{#each this.links as |link|}} {{#each this.links as |link|}}
<li <li

View File

@ -0,0 +1 @@
<CustomHeaderLinks @scrolledTopic={{@outletArgs.attrs.topic}} />

View File

@ -1,6 +0,0 @@
import { apiInitializer } from "discourse/lib/api";
import CustomHeaderLinks from "../components/custom-header-links";
export default apiInitializer("1.14.0", (api) => {
api.renderInOutlet("before-header-panel", CustomHeaderLinks);
});