updates
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -10,6 +10,5 @@
|
||||
<button>Emails</button>
|
||||
</a>
|
||||
<div class="flex-1"></div>
|
||||
<livewire:switch-team />
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user