Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

merge

Andras Bacsai7138eb4b691f
diff --git a/resources/views/components/inputs/button.blade.php b/resources/views/components/inputs/button.blade.php
deleted file mode 100644
index d09fb0cd78..0000000000
--- a/resources/views/components/inputs/button.blade.php
+++ /dev/null
@@ -1,30 +0,0 @@
-@props([
- 'type' => $attributes->get('type') ?? 'button',
- 'disabled' => null,
- 'confirm' => null,
- 'confirmAction' => null,
-])
-@if ($type === 'submit')
- <button {{ $attributes }} type="submit" @disabled($disabled) wire:target="submit"
- wire:loading.delay.shorter.class="loading"
- @isset($confirm)
- x-on:click="toggleConfirmModal('{{ $confirm }}', '{{ explode('(', $confirmAction)[0] }}')"
- @endisset
- @isset($confirmAction)
- x-on:{{ explode('(', $confirmAction)[0] }}.window="$wire.{{ explode('(', $confirmAction)[0] }}"
- @endisset>
- {{ $slot }}
- </button>
-@elseif($type === 'button')
- <button {{ $attributes }} @disabled($disabled) type="button"
- wire:target="{{ explode('(', $attributes->whereStartsWith('wire:click')->first())[0] }}"
- wire:loading.delay.shorter.class="loading"
- @isset($confirm)
- x-on:click="toggleConfirmModal('{{ $confirm }}', '{{ explode('(', $confirmAction)[0] }}')"
- @endisset
- @isset($confirmAction)
- x-on:{{ explode('(', $confirmAction)[0] }}.window="$wire.{{ explode('(', $confirmAction)[0] }}"
- @endisset>
- {{ $slot }}
- </button>
-@endif