mirror of
https://github.com/discourse/discourse.git
synced 2025-02-05 04:52:00 +08:00
19 lines
464 B
JavaScript
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());
|
|
}
|
|
}
|
|
});
|