mirror of
https://github.com/WGDashboard/WGDashboard.git
synced 2026-12-01 17:07:47 +00:00
Build with Email enabled
This commit is contained in:
@@ -41,9 +41,9 @@ const checkEmailReady = async () => {
|
||||
const sendTestEmail = async () => {
|
||||
testing.value = true
|
||||
await fetchPost("/api/email/send", {
|
||||
receiver: testEmailReceiver.value,
|
||||
subject: "WGDashboard Testing Email",
|
||||
body: "Test 1, 2, 3! Hello World :)"
|
||||
Receiver: testEmailReceiver.value,
|
||||
Subject: "WGDashboard Testing Email",
|
||||
Body: "Test 1, 2, 3! Hello World :)"
|
||||
}, (res) => {
|
||||
if (res.status){
|
||||
store.newMessage("Server", "Test email sent successfully!", "success")
|
||||
@@ -151,10 +151,12 @@ const sendTestEmail = async () => {
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<hr>
|
||||
<form
|
||||
<hr v-if="emailIsReady">
|
||||
<form
|
||||
v-if="emailIsReady"
|
||||
@submit="(e) => {e.preventDefault(); sendTestEmail()}"
|
||||
class="input-group mb-3">
|
||||
|
||||
<input type="email" class="form-control rounded-start-3"
|
||||
v-model="testEmailReceiver"
|
||||
:disabled="testing"
|
||||
|
||||
Reference in New Issue
Block a user