Skip to content

Commit d90284c

Browse files
committed
fix up lint & remove debugging code
1 parent 7a88b1c commit d90284c

File tree

3 files changed

+3
-44
lines changed

3 files changed

+3
-44
lines changed

javascripts/discourse/api-initializers/custom-components.gjs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
import { htmlSafe } from "@ember/template";
2+
import concatClass from "discourse/helpers/concat-class";
13
import { apiInitializer } from "discourse/lib/api";
24
import ButtonLink from "../components/button-link";
3-
import CustomStatusPicker from "../components/custom-status-picker";
4-
import concatClass from "discourse/helpers/concat-class";
5-
import { htmlSafe } from "@ember/template";
65

76
export default apiInitializer("1.8.0", (api) => {
87
// loop through settings.buttons and render a button for each one
@@ -12,7 +11,6 @@ export default apiInitializer("1.8.0", (api) => {
1211
</template>);
1312
});
1413
settings.custom_text_block.forEach((component) => {
15-
console.log("component", component);
1614
api.renderInOutlet(component.outlet, <template>
1715
<div class={{concatClass "custom-component" component.class}}>
1816
{{htmlSafe component.text}}

javascripts/discourse/components/button-link.gjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export default class ButtonLink extends Component {
1919
return !isGroupMember;
2020
}
2121
}
22+
2223
get button() {
2324
return this.args.button;
2425
}

javascripts/discourse/components/custom-status-picker.gjs

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)