This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/components/bulk-select-button.js.es6
2018-06-15 17:03:24 +02:00

19 lines
464 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"
});
controller.set("refreshClosure", () => this.sendAction());
}
}
});