Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewPrigorshnev committed Mar 7, 2024
1 parent ca25c86 commit e2b9912
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions assets/javascripts/discourse/widgets/assigned-to.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ export const AssignedToWidget = [

moreButton() {
const taskActions = getOwner(this).lookup("service:task-actions");
const menu = getOwner(this).lookup("service:menu");
const post = this.attrs.post;
const untr = ["click"];

return [
new RenderGlimmer(
Expand All @@ -57,21 +55,13 @@ export const AssignedToWidget = [
@label="discourse_assign.reassign.title_w_ellipsis"
class="popup-menu-btn" />
</li>
<li>
<DButton @action={{@data.testAction}}
@icon="heart"
@label="discourse_assign.reassign.title_w_ellipsis"
class="popup-menu-btn" />
</li>
</ul>
</div>
</DMenu>
`,
{
unassign: () => taskActions.unassignPost(post),
editAssignment: () => taskActions.showAssignPostModal(post),
testAction:() => menu.close(),
untr
}
),
];
Expand Down

0 comments on commit e2b9912

Please sign in to comment.