feat: Updates to dashboard and delete confirmations
All checks were successful
Build and Push App Image / build-and-push (push) Successful in 34s
All checks were successful
Build and Push App Image / build-and-push (push) Successful in 34s
This commit is contained in:
@@ -62,17 +62,17 @@
|
||||
</div>
|
||||
|
||||
<div v-if="mode === 'edit'" class="col-12">
|
||||
<div class="danger-zone border border-danger-subtle rounded p-3 mt-2">
|
||||
<div class="d-flex flex-column flex-md-row justify-content-between align-items-md-center gap-2">
|
||||
<div>
|
||||
<div class="fw-semibold text-danger">Danger Zone</div>
|
||||
<div class="small text-muted">Permanently delete this provider configuration.</div>
|
||||
</div>
|
||||
<button type="button" class="btn btn-sm btn-outline-danger" :disabled="submitting || deleting" @click="emit('delete', props.provider)">
|
||||
<i class="mdi mdi-trash-can-outline me-1" aria-hidden="true"></i>Delete Provider
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<DangerZonePanel
|
||||
class="mt-4"
|
||||
title-id="danger-zone-title"
|
||||
title="Danger Zone"
|
||||
description="Permanently delete this provider configuration. This action cannot be undone."
|
||||
>
|
||||
<button class="btn btn-danger" type="button" :disabled="submitting || deleting" @click="emit('delete', props.provider)">
|
||||
<i class="mdi mdi-delete-outline me-1" aria-hidden="true"></i>
|
||||
Delete Provider
|
||||
</button>
|
||||
</DangerZonePanel>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -92,6 +92,7 @@
|
||||
|
||||
<script setup>
|
||||
import { ref, watch } from "vue";
|
||||
import DangerZonePanel from "./DangerZonePanel.vue";
|
||||
|
||||
const props = defineProps({
|
||||
mode: {
|
||||
@@ -179,6 +180,3 @@ const handleSubmit = () => {
|
||||
</script>
|
||||
|
||||
<style scoped src="../assets/styles/scoped/components/AdminProviderModal.css"></style>
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user