Ghost/ghost/admin/app/components/member/subscription-detail-box.js
Rishabh 79248cdde9 Fixed dropdown blink for subscription detail box
refs https://github.com/TryGhost/Team/issues/1986

- creates new component for subscription detail box that avoids re-render of whole block causing flicker
2022-09-28 17:08:28 +05:30

12 lines
324 B
JavaScript

import Component from '@glimmer/component';
import {action} from '@ember/object';
import {tracked} from '@glimmer/tracking';
export default class SubscriptionDetailBox extends Component {
@tracked showDetails = false;
@action
toggleSubscriptionExpanded() {
this.showDetails = !this.showDetails;
}
}