feat(xo-web/XOA update): display "Downgrade" when trial is over (#2845)

Fixes #1483
This commit is contained in:
Rajaa.BARHTAOUI 2018-04-27 10:05:27 +02:00 committed by Pierre Donias
parent 3d869d9fa1
commit c6f3b2b1ce
2 changed files with 4 additions and 1 deletions

View File

@ -1532,6 +1532,7 @@ const messages = {
update: 'Update',
refresh: 'Refresh',
upgrade: 'Upgrade',
downgrade: 'Downgrade',
noUpdaterCommunity: 'No updater available for Community Edition',
considerSubscribe:
'Please consider subscribing and trying it with all the features for free during 15 days on {link}.',

View File

@ -234,7 +234,9 @@ export default class XoaUpdates extends Component {
handler={upgrade}
icon='upgrade'
>
{_('upgrade')}
{trial.state !== 'untrustedTrial'
? _('upgrade')
: _('downgrade')}
</ActionButton>
<hr />
<div>