global storage-providers, notification channels and server providers (#247)

This commit is contained in:
Saeed Vaziry
2024-06-29 12:52:03 +03:30
committed by GitHub
parent ad027eb033
commit 11e3b167cc
44 changed files with 678 additions and 77 deletions

View File

@ -16,13 +16,29 @@
@include("settings.notification-channels.partials.icons." . $channel->provider)
</div>
<div class="ml-3 flex flex-grow flex-col items-start justify-center">
<span class="mb-1">{{ $channel->label }}</span>
<div class="mb-1 flex items-center">
{{ $channel->label }}
@if (! $channel->project_id)
<x-status status="disabled" class="ml-2">GLOBAL</x-status>
@endif
</div>
<span class="text-sm text-gray-400">
<x-datetime :value="$channel->created_at" />
</span>
</div>
<div class="flex items-center">
<div class="inline">
<x-icon-button
id="edit-{{ $channel->id }}"
hx-get="{{ route('settings.notification-channels', ['edit' => $channel->id]) }}"
hx-replace-url="true"
hx-select="#edit"
hx-target="#edit"
hx-ext="disable-element"
hx-disable-element="#edit-{{ $channel->id }}"
>
<x-heroicon name="o-pencil" class="h-5 w-5" />
</x-icon-button>
<x-icon-button
x-on:click="deleteAction = '{{ route('settings.notification-channels.delete', $channel->id) }}'; $dispatch('open-modal', 'delete-channel')"
>
@ -34,6 +50,12 @@
@endforeach
@include("settings.notification-channels.partials.delete-channel")
<div id="edit">
@if (isset($editChannel))
@include("settings.notification-channels.partials.edit-notification-channel", ["notificationChannel" => $editChannel])
@endif
</div>
@else
<x-simple-card>
<div class="text-center">