Skip to content

A platform for community discussion. Free, open, simple.

DEV: Resolve `d-toast.duration` deprecation in bulk-topic-actions (#34104)

David Taylor2cdd4be030af
diff --git a/app/assets/javascripts/discourse/app/components/modal/bulk-topic-actions.gjs b/app/assets/javascripts/discourse/app/components/modal/bulk-topic-actions.gjs
index 5f5c8522e76..a807edbb721 100644
--- a/app/assets/javascripts/discourse/app/components/modal/bulk-topic-actions.gjs
+++ b/app/assets/javascripts/discourse/app/components/modal/bulk-topic-actions.gjs
@@ -227,12 +227,12 @@ export default class BulkTopicActions extends Component {
this.loading = false;
if (this.errors) {
this.toasts.error({
- duration: 3000,
+ duration: "short",
data: { message: i18n("generic_error") },
});
} else {
this.toasts.success({
- duration: 3000,
+ duration: "short",
data: { message: i18n("topics.bulk.completed") },
});
}