Disable customize button on inactive themes (#5492)

This commit is contained in:
Marc Jauvin 2021-02-04 11:35:01 -05:00 committed by GitHub
parent becb688123
commit c02346b3d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@
<?php if ($theme->hasCustomData()): ?>
<a
href="<?= Backend::url('cms/themeoptions/update/'.$theme->getDirName()) ?>"
class="btn btn-secondary">
class="btn btn-secondary<?= $theme->isActiveTheme() === false ? ' disabled' : '' ?>">
<i class="icon-paint-brush"></i>
<?= e(trans('cms::lang.theme.customize_button')) ?>
</a>