This commit is contained in:
Jarek Radosz 2024-11-07 17:29:13 +01:00
parent 89d671f3dc
commit 9bfcb8972f
No known key found for this signature in database
GPG Key ID: 62D0FBAE5BF9B953

View File

@ -1,10 +1,10 @@
import { tracked } from "@glimmer/tracking";
import { action } from "@ember/object";
import { getOwner, setOwner } from "@ember/owner";
import { service } from "@ember/service";
import { TrackedArray } from "@ember-compat/tracked-built-ins";
import { NotificationLevels } from "discourse/lib/notification-levels";
import Topic from "discourse/models/topic";
import { bind } from "discourse-common/utils/decorators";
export default class BulkSelectHelper {
@service router;
@ -34,8 +34,9 @@ export default class BulkSelectHelper {
return this.selected.mapBy("category_id").uniq();
}
@bind
toggleBulkSelect() {
@action
toggleBulkSelect(event) {
event.preventDefault();
this.bulkSelectEnabled = !this.bulkSelectEnabled;
this.clear();
}