Adopt global empty-state for remaining user form empties
This commit is contained in:
@@ -524,7 +524,13 @@ foreach ($tenants as $tenant) {
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if (empty($apiTokens) && !$canManageApiTokens): ?>
|
||||
<p class="secondary"><?php e(t('No API tokens')); ?></p>
|
||||
<?php
|
||||
$emptyState = [
|
||||
'message' => t('No API tokens'),
|
||||
'size' => 'compact',
|
||||
];
|
||||
require templatePath('partials/app-empty-state.phtml');
|
||||
?>
|
||||
<?php endif; ?>
|
||||
</details>
|
||||
<?php endif; ?>
|
||||
@@ -605,7 +611,13 @@ foreach ($tenants as $tenant) {
|
||||
);
|
||||
?>
|
||||
<?php else: ?>
|
||||
<p class="muted"><?php e(t('No departments available for this tenant')); ?></p>
|
||||
<?php
|
||||
$emptyState = [
|
||||
'message' => t('No departments available for this tenant'),
|
||||
'size' => 'compact',
|
||||
];
|
||||
require templatePath('partials/app-empty-state.phtml');
|
||||
?>
|
||||
<?php endif; ?>
|
||||
</fieldset>
|
||||
<?php endforeach; ?>
|
||||
|
||||
Reference in New Issue
Block a user