fix: able to select root permission easier

This commit is contained in:
Andras Bacsai
2024-10-03 09:57:37 +02:00
parent e91939a4ea
commit c4e702f096
2 changed files with 28 additions and 12 deletions

View File

@@ -6,7 +6,8 @@
<div class="pb-4">
<h2>API Tokens</h2>
@if (!$isApiEnabled)
<div>API is disabled. If you want to use the API, please enable it in the <a href="{{ route('settings.index') }}" class="underline dark:text-white">Settings</a> menu.</div>
<div>API is disabled. If you want to use the API, please enable it in the <a
href="{{ route('settings.index') }}" class="underline dark:text-white">Settings</a> menu.</div>
@else
<div>Tokens are created with the current team as scope. You will only have access to this team's resources.
</div>
@@ -25,7 +26,7 @@
@if ($permissions)
@foreach ($permissions as $permission)
@if ($permission === '*')
<div>All (root/admin access), be careful!</div>
<div>Root access, be careful!</div>
@else
<div>{{ $permission }}</div>
@endif
@@ -35,6 +36,7 @@
</div>
<h4>Token Permissions</h4>
<div class="w-64">
<x-forms.checkbox label="Root Access" wire:model.live="rootAccess"></x-forms.checkbox>
<x-forms.checkbox label="Read-only" wire:model.live="readOnly"></x-forms.checkbox>
<x-forms.checkbox label="View Sensitive Data" wire:model.live="viewSensitiveData"></x-forms.checkbox>
</div>