mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 01:42:29 +03:00
5bb945e89b
DES-192 We often hear that people are not aware of the new features we ship. Ways in which people can find out are social media/changelog/dashboard – all of these are easy to miss. We'd like to introduce a template for a simple notification in the sidebar that can be used any time a new and noteworthy feature has shipped. The purpose of this is simply to notify and will disappear forever after it's been dismissed.
16 lines
405 B
JavaScript
16 lines
405 B
JavaScript
import Component from '@glimmer/component';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
export default class WhatsNewFeatured extends Component {
|
|
@service whatsNew;
|
|
|
|
static modalOptions = {
|
|
className: 'fullscreen-modal-action fullscreen-modal-wide fullscreen-modal-whatsnew'
|
|
};
|
|
|
|
willDestroy() {
|
|
super.willDestroy(...arguments);
|
|
this.whatsNew.seen();
|
|
}
|
|
}
|