Ghost/ghost/admin/app/components/modals/limits/publish-limit.js

12 lines
356 B
JavaScript
Raw Normal View History

import Component from '@glimmer/component';
export default class PublishLimitModal extends Component {
get headerMessage() {
if (this.args.data.message?.match(/account is currently in review/gi)) {
return 'Hold up, we\'re missing some details';
} else {
return 'Upgrade to enable publishing';
}
}
}