discourse/app/assets/javascripts/float-kit/addon
Jan Cernik 8dd883d4e5
DEV: Refactor topic admin menu to use <DMenu> (#26678)
* DEV: Refactor topic admin menu to use `<DMenu>`

This PR also introduces a new plugin API to add buttons to the topic admin menu

```javascript
api.addTopicAdminMenuButton((topic) => {
  return {
    action: () => {
      alert('Sunrise!');
    },
    icon: 'sun',
    className: 'sunrise-button',
    label: 'actions.rise',
  };
});
```

The plugins that needed to be updated are:

- [discourse-zoom](https://github.com/discourse/discourse-zoom/pull/73)
- [discourse-salesforce](https://github.com/discourse/discourse-salesforce/pull/74)
- [discourse-topic-noindex](https://github.com/discourse/discourse-topic-noindex/pull/11)
2024-04-29 12:44:38 -03:00
..
components DEV: Refactor topic admin menu to use <DMenu> (#26678) 2024-04-29 12:44:38 -03:00
lib DEV: supports inline for d-menu (#26742) 2024-04-24 18:29:26 +02:00
modifiers FEATURE: add swipe up to close toast notification (#26659) 2024-04-19 09:49:50 +02:00
services UX: shows the bookmark menu improvements 2024-04-08 08:18:50 +02:00