This commit is contained in:
Andras Bacsai
2023-06-08 11:43:14 +02:00
parent 9767ca47ff
commit 127d42d873
12 changed files with 34 additions and 19 deletions

View File

@@ -5,7 +5,7 @@
<x-forms.button type="submit">
Save
</x-forms.button>
@if (auth()->user()->isAdmin())
@if (auth()->user()->isInstanceAdmin())
<x-forms.button wire:click='copySMTP'>
Copy from Instance Settings
</x-forms.button>

View File

@@ -6,7 +6,7 @@
</div>
<x-forms.textarea id="value" rows="10" placeholder="-----BEGIN OPENSSH PRIVATE KEY-----"
label="Private Key" required />
<x-forms.button type="submit" wire.click.prevent>
<x-forms.button type="submit">
Save Private Key
</x-forms.button>
</form>

View File

@@ -1,5 +1,5 @@
<div class="w-64 -mt-9">
<x-forms.select id="selectedTeamId" class="pr-0 select-xs ">
<x-forms.select wire:model="selectedTeamId" class="pr-0 select-xs ">
<option value="default" disabled selected>Switch team</option>
@foreach (auth()->user()->teams as $team)
<option value="{{ $team->id }}">{{ $team->name }}</option>

View File

@@ -3,8 +3,15 @@
<td>{{ $member->name }}</td>
<td>{{ $member->email }}</td>
<td>
{{-- @if (auth()->user()->isAdmin())
<x-forms.button wire:click="makeAdmin">Make admin</x-forms.button>
@else
<x-forms.button disabled>Make admin</x-forms.button>
@endif --}}
@if ($member->id !== auth()->user()->id)
<x-forms.button class="border-none">Remove</x-forms.button>
<x-forms.button wire:click="remove">Remove</x-forms.button>
@else
<x-forms.button disabled>Remove</x-forms.button>
@endif
</td>
</tr>