UX: AI Helper positioning (#506)

This commit is contained in:
Keegan George 2024-03-04 13:58:00 -08:00 committed by GitHub
parent cee1b3d275
commit 9485f3110a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,6 @@ export default class AIHelperOptionsMenu extends Component {
async showAIHelperOptions() { async showAIHelperOptions() {
this.showMainButtons = false; this.showMainButtons = false;
this.menuState = this.MENU_STATES.options; this.menuState = this.MENU_STATES.options;
this.menu.activeMenu.options.placement = "bottom";
} }
@bind @bind
@ -82,6 +81,7 @@ export default class AIHelperOptionsMenu extends Component {
if (option.name === "explain") { if (option.name === "explain") {
this.menuState = this.MENU_STATES.result; this.menuState = this.MENU_STATES.result;
this.menu.activeMenu.options.placement = "bottom";
const fetchUrl = `/discourse-ai/ai-helper/explain`; const fetchUrl = `/discourse-ai/ai-helper/explain`;
this._activeAIRequest = ajax(fetchUrl, { this._activeAIRequest = ajax(fetchUrl, {