Add success alert when script saved

dashboard
Pat Hartl 2023-01-16 02:38:30 -06:00
parent f2dfc90de8
commit 9d23901be8
1 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,7 @@ using LANCommander.Services;
namespace LANCommander.Controllers
{
[Authorize(Roles = "Administrator")]
public class ScriptsController : Controller
public class ScriptsController : BaseController
{
private readonly GameService GameService;
private readonly ScriptService ScriptService;
@ -75,6 +75,8 @@ namespace LANCommander.Controllers
{
await ScriptService.Update(script);
Alert("The script has been saved!", "success");
return RedirectToAction("Edit", "Games", new { id = script.GameId });
}