* hide delete miniprogram btn when no priv.
This commit is contained in:
@@ -155,9 +155,11 @@ $finalList = array_merge($categoryList, $lang->ai->miniPrograms->allCategories);
|
||||
<i class="icon-ban-circle text-primary"></i>
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
<button class="btn" onclick="openDeleteDialog(event)" title="<?= $lang->ai->prompts->action->delete; ?>"<?= $isPublished ? ' disabled' : ''; ?>>
|
||||
<i class="icon-trash text-primary"></i>
|
||||
</button>
|
||||
<?php if(common::hasPriv('ai', 'deleteMiniProgram')): ?>
|
||||
<button class="btn" onclick="openDeleteDialog(event)" title="<?= $lang->ai->prompts->action->delete; ?>"<?= $isPublished ? ' disabled' : ''; ?>>
|
||||
<i class="icon-trash text-primary"></i>
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
|
||||
@@ -144,9 +144,11 @@
|
||||
<button class="btn" onclick="openPublishDialog(event)" title="<?= $lang->ai->prompts->action->publish; ?>">
|
||||
<i class="icon-publish icon-sm"></i> <?= $lang->ai->prompts->action->publish; ?>
|
||||
</button>
|
||||
<button class="btn" onclick="openDeleteDialog(event)" title="<?= $lang->ai->prompts->action->delete; ?>">
|
||||
<i class="icon-trash icon-sm"></i> <?= $lang->ai->prompts->action->delete; ?>
|
||||
</button>
|
||||
<?php if(common::hasPriv('ai', 'deleteMiniProgram')): ?>
|
||||
<button class="btn" onclick="openDeleteDialog(event)" title="<?= $lang->ai->prompts->action->delete; ?>">
|
||||
<i class="icon-trash icon-sm"></i> <?= $lang->ai->prompts->action->delete; ?>
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user