mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
just some cleanup
This commit is contained in:
parent
8e4c0f60a1
commit
fbfc817c5f
|
@ -90,7 +90,6 @@ class ProfileController extends Controller
|
|||
*/
|
||||
public function api(): \Illuminate\Contracts\View\View
|
||||
{
|
||||
|
||||
// Make sure the self.api permission has been granted
|
||||
if (!Gate::allows('self.api')) {
|
||||
abort(403);
|
||||
|
|
|
@ -14,10 +14,10 @@
|
|||
<div class="col-md-8">
|
||||
|
||||
@if (!config('app.lock_passwords'))
|
||||
{{-- <passport-personal-access-tokens--}}
|
||||
{{-- token-url="{{ url('oauth/personal-access-tokens') }}"--}}
|
||||
{{-- scopes-url="{{ url('oauth/scopes') }}">--}}
|
||||
{{-- </passport-personal-access-tokens>--}}
|
||||
<passport-personal-access-tokens
|
||||
token-url="{{ url('oauth/personal-access-tokens') }}"
|
||||
scopes-url="{{ url('oauth/scopes') }}">
|
||||
</passport-personal-access-tokens>
|
||||
{{-- New Component --}}
|
||||
<x-personal-access-tokens.panel :tokens="$tokens" />
|
||||
@else
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button " class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
|
||||
<h4 class="modal-title">
|
||||
Create Token
|
||||
|
|
|
@ -43,11 +43,11 @@
|
|||
</tr>
|
||||
</thead>
|
||||
@endif
|
||||
|
||||
@foreach($tokens as $token)
|
||||
<tbody>
|
||||
<tr>
|
||||
<!-- Client Name -->
|
||||
@foreach($tokens as $token)
|
||||
|
||||
<td style="vertical-align: middle;">
|
||||
{{ $token->name }}
|
||||
</td>
|
||||
|
@ -59,7 +59,7 @@
|
|||
<td style="vertical-align: middle;">
|
||||
{{ $token->expires_at }}
|
||||
</td>
|
||||
@endforeach
|
||||
|
||||
|
||||
<!-- Delete Button -->
|
||||
<td style="vertical-align: middle;" class="text-right">
|
||||
|
@ -68,6 +68,7 @@
|
|||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue