(cp 0b9e177) issue #1852 also forbid extension deletion

This commit is contained in:
plegall
2023-01-25 15:21:11 +01:00
parent 53e37d3847
commit 24b439e2a7
10 changed files with 39 additions and 5 deletions
@@ -48,7 +48,9 @@ $(".delete-lang-button").each(function() {
{if $language_state == 'inactive'}
<a href="{$language.u_action}&amp;action=activate" class="tiptip" title="{'Make this language available to users'|@translate}">{'Activate'|@translate}</a>
{if $CONF_ENABLE_EXTENSIONS_INSTALL}
| <a href="{$language.u_action}&amp;action=delete" class="tiptip delete-lang-button" title="{'Delete this language'|@translate}">{'Delete'|@translate}</a>
{/if}
{/if}
</div>
</div> <!-- languageActions -->
@@ -151,7 +151,7 @@ let plugin_filter = searchParams.get('filter');
<div class="tiptip" title="{'Uninstall'|@translate}">
<a class="uninstall-plugin-button">{'Uninstall'|@translate}</a>
</div>
{elseif $plugin.STATE == 'merged'}
{elseif $plugin.STATE == 'merged' and $CONF_ENABLE_EXTENSIONS_INSTALL}
<div class="tiptip" title="{'Delete'|@translate}">
<a class="" href="{$plugin.U_ACTION}&amp;action=delete">{'Delete'|@translate}</a>
</div>
@@ -164,7 +164,9 @@ let plugin_filter = searchParams.get('filter');
{$plugin.DESC}
</div>
<a class="dropdown-option icon-back-in-time plugin-restore separator-top tiptip" title="{'While restoring this plugin, it will be reset to its original parameters and associated data is going to be reset'|@translate}">{'Restore'|@translate}</a>
{if $CONF_ENABLE_EXTENSIONS_INSTALL}
<a class="dropdown-option icon-trash delete-plugin-button separator-top">{'Delete'|@translate}</a>
{/if}
</div>
<div class="pluginName" data-title="{$plugin.NAME}">
{$plugin.NAME}
@@ -187,7 +189,7 @@ let plugin_filter = searchParams.get('filter');
{/if}
{elseif $plugin.STATE == 'missing'}
<a class="pluginActionLevel3 uninstall-plugin-button">{'Uninstall'|@translate}</a>
{elseif $plugin.STATE == 'merged'}
{elseif $plugin.STATE == 'merged' and $CONF_ENABLE_EXTENSIONS_INSTALL}
<a class="pluginActionLevel3" href="{$plugin.U_ACTION}&amp;action=delete">{'Delete'|@translate}</a>
{/if}
</div>
@@ -114,7 +114,7 @@ $(window).bind("load", function() {
<div class="showInfo-dropdown-content">
{$theme.DESC|@escape:'html'}
</div>
{if $theme.STATE != "active"}
{if $theme.STATE != "active" and $CONF_ENABLE_EXTENSIONS_INSTALL}
{if $theme.DELETABLE}
<a class="dropdown-option icon-trash delete-plugin-button delete-theme-button" href="{$delete_baseurl}{$theme.ID}">{'Delete'|@translate}</a>
{else}