diff --git a/Views/Admin/Index.cshtml b/Views/Admin/Index.cshtml index b1eccc8..5491974 100644 --- a/Views/Admin/Index.cshtml +++ b/Views/Admin/Index.cshtml @@ -4,17 +4,26 @@ @model AdminViewModel
- Admin Panel +
+ +
+
+ Admin Panel +

-
- - +
+ +
+
+
+ + +
-
@@ -74,9 +83,9 @@ } }); } - function deleteUser(userId){ - $.post(`/Admin/DeleteUser?userId=${userId}`, function(data){ - if (data){ + function deleteUser(userId) { + $.post(`/Admin/DeleteUser?userId=${userId}`, function (data) { + if (data) { reloadPage(); } }) @@ -86,12 +95,12 @@ navigator.clipboard.writeText(textToCopy); successToast("Copied to Clipboard"); } - function generateNewToken(){ + function generateNewToken() { Swal.fire({ title: 'Generate Token', html: ` - - `, + + `, confirmButtonText: 'Generate', focusConfirm: false, preConfirm: () => { @@ -104,7 +113,7 @@ }).then(function (result) { if (result.isConfirmed) { var autoNotify = $("#enableAutoNotify").is(":checked"); - $.get('/Admin/GenerateNewToken', {emailAddress: result.value.emailAddress, autoNotify: autoNotify}, function (data) { + $.get('/Admin/GenerateNewToken', { emailAddress: result.value.emailAddress, autoNotify: autoNotify }, function (data) { if (data.success) { reloadPage(); } else { diff --git a/Views/Home/Index.cshtml b/Views/Home/Index.cshtml index 5eddcea..730d5cf 100644 --- a/Views/Home/Index.cshtml +++ b/Views/Home/Index.cshtml @@ -45,8 +45,19 @@ @if (User.IsInRole("CookieAuth")) { - } diff --git a/Views/Vehicle/Index.cshtml b/Views/Vehicle/Index.cshtml index 998847e..25ed3c7 100644 --- a/Views/Vehicle/Index.cshtml +++ b/Views/Vehicle/Index.cshtml @@ -42,7 +42,7 @@ -