mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: allow selecting a tag when moving posts to a new topic (#6074)
This commit is contained in:
@@ -966,15 +966,21 @@ export default Ember.Controller.extend(BufferedContent, {
|
||||
canDeselectAll: Ember.computed.alias("selectedAllPosts"),
|
||||
|
||||
@computed(
|
||||
"currentUser.staff",
|
||||
"selectedPostsCount",
|
||||
"selectedAllPosts",
|
||||
"selectedPosts",
|
||||
"selectedPosts.[]"
|
||||
)
|
||||
canDeleteSelected(selectedPostsCount, selectedAllPosts, selectedPosts) {
|
||||
canDeleteSelected(
|
||||
isStaff,
|
||||
selectedPostsCount,
|
||||
selectedAllPosts,
|
||||
selectedPosts
|
||||
) {
|
||||
return (
|
||||
selectedPostsCount > 0 &&
|
||||
(selectedAllPosts || selectedPosts.every(p => p.can_delete))
|
||||
((selectedAllPosts && isStaff) || selectedPosts.every(p => p.can_delete))
|
||||
);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user