Skip to content

Commit

Permalink
Add UI update deprecation notice (#10907)
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisameling committed Feb 28, 2022
1 parent 985b962 commit cabfb2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/bundles/CoreBundle/Translations/en_US/messages.ini
Expand Up @@ -432,6 +432,7 @@ mautic.core.update.migrating.database.schema="Migrating database schema..."
mautic.core.update.no_cache_data="Could not read the cached update data to apply the update."
mautic.core.update.now="Update Now"
mautic.core.update.composer="You have Composer updates enabled. This means that you can only update Mautic through the Command Line. Read more in the <a target='_blank' href='https://mau.tc/switch-to-composer'>documentation</a>."
mautic.core.update.ui.deprecated="Updating Mautic through the user interface is deprecated and won’t be supported anymore in Mautic 5.0. For more information and to learn what you can do to prepare, please read the <a target='_blank' href='https://mau.tc/switch-to-composer'>documentation</a>."
mautic.core.update.post_message="Post Update Message"
mautic.core.update.remove.deleted.files="Removing deleted files"
mautic.core.update.schema_updated="Database schema has been updated."
Expand Down
5 changes: 4 additions & 1 deletion app/bundles/CoreBundle/Views/Update/index.html.php
Expand Up @@ -50,10 +50,13 @@
</tbody>
</table>
<?php if ($isComposerEnabled): ?>
<div class="text-center">
<div class="alert alert-warning text-center">
<strong><?php echo $view['translator']->trans('mautic.core.update.composer'); ?></strong>
</div>
<?php else: ?>
<div class="alert alert-warning text-center">
<strong><?php echo $view['translator']->trans('mautic.core.update.ui.deprecated'); ?></strong>
</div>
<div class="text-right">
<button class="btn btn-primary" onclick="Mautic.processUpdate('update-panel', 1, '<?php echo base64_encode(json_encode([])); ?>');"><?php echo $view['translator']->trans('mautic.core.update.now'); ?></button>
</div>
Expand Down

0 comments on commit cabfb2a

Please sign in to comment.