mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
79248cdde9
refs https://github.com/TryGhost/Team/issues/1986 - creates new component for subscription detail box that avoids re-render of whole block causing flicker
12 lines
324 B
JavaScript
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;
|
|
}
|
|
} |