Skip to content

Commit 22e5e1d

Browse files
Access denied toast in home added
1 parent 1963c5c commit 22e5e1d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
11
@{
22
ViewData["Title"] = "Home Page";
33
}
4+
@{
5+
var msg = TempData["Toast"] as string;
6+
}
7+
8+
@if (!string.IsNullOrEmpty(msg))
9+
{
10+
<script>
11+
document.addEventListener("DOMContentLoaded", () => {
12+
toastr.options.closeButton = true;
13+
toastr.options.progressBar = true;
14+
toastr.success('@msg', 'Success');
15+
});
16+
</script>
17+
}

0 commit comments

Comments
 (0)