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

@@ -32,7 +32,8 @@
@endif
</span>
</label>
<select {{ $attributes }} wire:model.defer={{ $id }}>
<select {{ $attributes }}
@if ($id) name={{ $id }} wire:model.defer={{ $id }} @endif>
{{ $slot }}
</select>

View File

@@ -41,7 +41,7 @@
</li>
@if (auth()->user()->isAdmin())
@if (auth()->user()->isInstanceAdmin())
<li title="Command Center">
<a class="hover:bg-transparent" @if (!request()->is('command-center')) href="/command-center" @endif>
<svg xmlns="http://www.w3.org/2000/svg"

View File

@@ -10,6 +10,5 @@
<button>Emails</button>
</a>
<div class="flex-1"></div>
<livewire:switch-team />
</nav>
</div>

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>

View File

@@ -2,7 +2,7 @@
<x-settings.navbar />
<livewire:settings.configuration :settings="$settings" />
@if (auth()->user()->isAdmin())
@if (auth()->user()->isInstanceAdmin())
<livewire:force-upgrade />
@endif
</x-layout>