feat: delete gh app

This commit is contained in:
Andras Bacsai
2023-05-09 10:01:57 +02:00
parent bba8b25b48
commit db92dc3636
8 changed files with 17 additions and 46 deletions

View File

@@ -10,7 +10,7 @@
<x-inputs.button>
Submit
</x-inputs.button>
<x-inputs.button isWarning x-on:click="deleteDestination = true">
<x-inputs.button isWarning x-on:click.prevent="deleteDestination = true">
Delete
</x-inputs.button>
</div>

View File

@@ -7,7 +7,7 @@
<x-inputs.button type="submit">
Submit
</x-inputs.button>
<x-inputs.button isWarning x-on:click="deletePrivateKey = true">
<x-inputs.button isWarning x-on:click.prevent="deletePrivateKey = true">
Delete
</x-inputs.button>
</form>

View File

@@ -8,7 +8,7 @@
<x-inputs.button wire:click='start'>Start</x-inputs.button>
<x-inputs.button wire:click='forceRebuild'>Start (no cache)</x-inputs.button>
@endif
<x-inputs.button isWarning x-on:click="deleteApplication = true">
<x-inputs.button isWarning x-on:click.prevent="deleteApplication = true">
Delete</x-inputs.button>
<span wire:poll.5000ms='pollingStatus'>
@if ($application->status === 'running')

View File

@@ -10,7 +10,7 @@
<x-inputs.button type="submit">
Update
</x-inputs.button>
<x-inputs.button x-on:click="deleteEnvironment = true" isWarning>
<x-inputs.button x-on:click.prevent="deleteEnvironment = true" isWarning>
Delete
</x-inputs.button>
</form>

View File

@@ -7,7 +7,7 @@
<x-inputs.button type="submit">
Update
</x-inputs.button>
<x-inputs.button x-on:click="deleteStorage = true" isWarning>
<x-inputs.button x-on:click.prevent="deleteStorage = true" isWarning>
Delete
</x-inputs.button>
</form>

View File

@@ -22,7 +22,7 @@
<x-inputs.button type="submit">Submit</x-inputs.button>
<x-inputs.button wire:click.prevent='checkServer'>Check Server</x-inputs.button>
<x-inputs.button wire:click.prevent='installDocker'>Install Docker</x-inputs.button>
<x-inputs.button isWarning x-on:click="deleteServer = true">
<x-inputs.button isWarning x-on:click.prevent="deleteServer = true">
Delete
</x-inputs.button>
</div>

View File

@@ -1,4 +1,5 @@
<div>
<div x-data="{ deleteSource: false }">
<x-naked-modal show="deleteSource" message='Are you sure you would like to delete this source?' />
<h3>Change Github App</h3>
<form wire:submit.prevent='submit'>
<x-inputs.input id="github_app.name" label="App Name" required />
@@ -23,6 +24,9 @@
@else
<div class="py-2">
<x-inputs.button type="submit">Save</x-inputs.button>
<x-inputs.button isWarning x-on:click.prevent="deleteSource = true">
Delete
</x-inputs.button>
</div>
@endif
</form>