mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-30 06:12:03 +03:00
d4398cacf7
refs https://github.com/TryGhost/Team/issues/1734 refs https://github.com/TryGhost/Team/issues/559 refs https://github.com/TryGhost/Ghost/issues/14101 - switches to newer modal patterns ready for later Ember upgrades
12 lines
356 B
JavaScript
12 lines
356 B
JavaScript
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';
|
|
}
|
|
}
|
|
}
|