Add success alert when script saved
This commit is contained in:
parent
f2dfc90de8
commit
9d23901be8
1 changed files with 3 additions and 1 deletions
|
@ -14,7 +14,7 @@ using LANCommander.Services;
|
||||||
namespace LANCommander.Controllers
|
namespace LANCommander.Controllers
|
||||||
{
|
{
|
||||||
[Authorize(Roles = "Administrator")]
|
[Authorize(Roles = "Administrator")]
|
||||||
public class ScriptsController : Controller
|
public class ScriptsController : BaseController
|
||||||
{
|
{
|
||||||
private readonly GameService GameService;
|
private readonly GameService GameService;
|
||||||
private readonly ScriptService ScriptService;
|
private readonly ScriptService ScriptService;
|
||||||
|
@ -75,6 +75,8 @@ namespace LANCommander.Controllers
|
||||||
{
|
{
|
||||||
await ScriptService.Update(script);
|
await ScriptService.Update(script);
|
||||||
|
|
||||||
|
Alert("The script has been saved!", "success");
|
||||||
|
|
||||||
return RedirectToAction("Edit", "Games", new { id = script.GameId });
|
return RedirectToAction("Edit", "Games", new { id = script.GameId });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue