Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default class AiComposerHelperMenu extends Component {
const owner = getOwner(this);
const options = {
close: () => this.args.close(),
duration: 3000,
duration: "short",
data: {
theme: "error",
icon: "triangle-exclamation",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export default class AiEmbeddingEditor extends Component {

this.toasts.success({
data: { message: i18n("discourse_ai.embeddings.saved") },
duration: 2000,
duration: "short",
});
}
} catch (e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export default class AiLlmEditorForm extends Component {
}
this.toasts.success({
data: { message: i18n("discourse_ai.llms.saved") },
duration: 2000,
duration: "short",
});
} catch (e) {
popupAjaxError(e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default class PersonaEditor extends Component {
}
this.toasts.success({
data: { message: i18n("discourse_ai.ai_persona.saved") },
duration: 2000,
duration: "short",
});
} catch (e) {
popupAjaxError(e);
Expand Down
4 changes: 2 additions & 2 deletions assets/javascripts/discourse/components/ai-spam.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default class AiSpam extends Component {
if (response.success) {
this.toasts.success({
data: { message: i18n("discourse_ai.spam.errors.resolved") },
duration: 2000,
duration: "short",
});
}
} catch (error) {
Expand Down Expand Up @@ -145,7 +145,7 @@ export default class AiSpam extends Component {
});
this.toasts.success({
data: { message: i18n("discourse_ai.spam.settings_saved") },
duration: 2000,
duration: "short",
});
} catch (error) {
popupAjaxError(error);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default class AiToolEditorForm extends Component {

this.toasts.success({
data: { message: i18n("discourse_ai.tools.saved") },
duration: 2000,
duration: "short",
});

if (!this.args.tools.any((tool) => tool.id === this.args.model.id)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default class ShareModal extends Component {
async share() {
await clipboardCopyAsync(this.generateShareURL.bind(this));
this.toasts.success({
duration: 3000,
duration: "short",
data: {
message: i18n("discourse_ai.ai_bot.conversation_shared"),
},
Expand All @@ -109,7 +109,7 @@ export default class ShareModal extends Component {
await clipboardCopyAsync(() => promise);

this.toasts.success({
duration: 3000,
duration: "short",
data: {
message: i18n("discourse_ai.ai_bot.embed_copied"),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export default class AiTagSuggester extends Component {
if (tags?.length >= maxTags) {
return this.toasts.error({
class: "ai-suggestion-error",
duration: 3000,
duration: "short",
data: {
message: i18n("discourse_ai.ai_helper.suggest_errors.too_many_tags", {
count: maxTags,
Expand Down
2 changes: 1 addition & 1 deletion assets/javascripts/initializers/ai-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function initializeAiHelperTrigger(api) {

return toasts.error({
class: "ai-proofread-error-toast",
duration: 3000,
duration: "short",
data: {
message: i18n("discourse_ai.ai_helper.no_content_error"),
},
Expand Down
2 changes: 1 addition & 1 deletion assets/javascripts/initializers/ai-image-caption.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default apiInitializer("1.25.0", (api) => {
} catch (error) {
toasts.error({
class: "ai-image-caption-error-toast",
duration: 3000,
duration: "short",
data: {
message: extractError(error),
},
Expand Down
Loading