resolved
This commit is contained in:
parent
4b9727067b
commit
a6690493b0
2 changed files with 3 additions and 2 deletions
|
@ -49,6 +49,6 @@ class PersonalAccessTokens extends Component
|
||||||
{
|
{
|
||||||
//this needs safety (though the scope of auth::user might kind of do it...)
|
//this needs safety (though the scope of auth::user might kind of do it...)
|
||||||
//seems like it does, test more
|
//seems like it does, test more
|
||||||
Auth::user()->tokens()->find($tokenId)->delete();
|
Auth::user()->tokens()->find($tokenId)?->delete();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,7 +48,8 @@
|
||||||
</td>
|
</td>
|
||||||
<!-- Delete Button -->
|
<!-- Delete Button -->
|
||||||
<td style="vertical-align: middle;" class="text-right">
|
<td style="vertical-align: middle;" class="text-right">
|
||||||
<a class="action-link btn btn-danger btn-sm" wire:click="deleteToken('{{ $token->id }}')">
|
<a class="action-link btn btn-danger btn-sm" wire:click="deleteToken('{{ $token->id }}')"
|
||||||
|
wire:loading.attr="disabled">
|
||||||
<i class="fas fa-trash"></i>
|
<i class="fas fa-trash"></i>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Add table
Reference in a new issue