Ghost/ghost/admin/app/components/modals/whats-new.js
Peter Zimon 5bb945e89b
What's new popup (#20112)
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.
2024-05-21 12:36:28 +02:00

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();
}
}