Co-Authored-By: Bianca Nenciu <nbianca@users.noreply.github.com> Co-Authored-By: David Taylor <david@taylorhq.com>
23 lines
527 B
JavaScript
23 lines
527 B
JavaScript
import showModal from "discourse/lib/show-modal";
|
|
|
|
export default Ember.Component.extend({
|
|
classNames: ["bulk-select-container"],
|
|
|
|
actions: {
|
|
showBulkActions() {
|
|
const controller = showModal("topic-bulk-actions", {
|
|
model: {
|
|
topics: this.get("selected"),
|
|
category: this.get("category")
|
|
},
|
|
title: "topics.bulk.actions"
|
|
});
|
|
|
|
const action = this.get("action");
|
|
if (action) {
|
|
controller.set("refreshClosure", () => action());
|
|
}
|
|
}
|
|
}
|
|
});
|