1
0
mirror of synced 2026-08-05 23:36:55 +00:00

DEV: Tweaks for drop-down implementation (#69)

- Remove unused 'toggleAiBotPanel' widget action

- Switch from appEvents to closure actions

- Convert widget definition to native class syntax, so that we can use `@action` decorator. (alternatively, we could have done `{ closePanel: this.hideAiBotPanel.bind(this) }` in `RenderGlimmer`
This commit is contained in:
David Taylor
2023-05-18 09:28:43 +01:00
committed by GitHub
parent deb34bb52f
commit 261fe13599
4 changed files with 19 additions and 26 deletions
@@ -24,10 +24,6 @@ function attachHeaderIcon(api) {
this.state.botSelectorVisible = false;
});
api.attachWidgetAction("header", "toggleAiBotPanel", function () {
this.state.botSelectorVisible = !this.state.botSelectorVisible;
});
api.decorateWidget("header-icons:before", (helper) => {
return helper.attach("header-dropdown", {
title: "blog.start_gpt_chat",