email support
This commit is contained in:
@@ -11,6 +11,7 @@ import {
|
||||
faArrowsRotate,
|
||||
faToggleOn,
|
||||
faToggleOff,
|
||||
faPaperPlane,
|
||||
} from "@fortawesome/free-solid-svg-icons";
|
||||
|
||||
const props = defineProps({
|
||||
@@ -64,6 +65,12 @@ function testConnection(p) {
|
||||
.then(() => window.location.reload());
|
||||
}
|
||||
|
||||
function sendTestEmail(p) {
|
||||
window.axios
|
||||
.post(route("admin.mail-profiles.send-test", p.id))
|
||||
.then(() => window.location.reload());
|
||||
}
|
||||
|
||||
const statusClass = (p) => {
|
||||
if (p.test_status === "success") return "text-emerald-600";
|
||||
if (p.test_status === "failed") return "text-rose-600";
|
||||
@@ -145,6 +152,13 @@ const statusClass = (p) => {
|
||||
>
|
||||
<FontAwesomeIcon :icon="faFlask" class="w-3.5 h-3.5" /> Test
|
||||
</button>
|
||||
<button
|
||||
@click="sendTestEmail(p)"
|
||||
class="inline-flex items-center gap-1 text-xs px-2 py-1 rounded border text-emerald-700 border-emerald-300 bg-emerald-50 hover:bg-emerald-100"
|
||||
title="Pošlji testni email"
|
||||
>
|
||||
<FontAwesomeIcon :icon="faPaperPlane" class="w-3.5 h-3.5" /> Pošlji test
|
||||
</button>
|
||||
<button
|
||||
class="inline-flex items-center gap-1 text-xs px-2 py-1 rounded border text-indigo-600 border-indigo-300 bg-indigo-50 hover:bg-indigo-100"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user