Skip to content

Commit

Permalink
Use applicationName When Generating Action And Mail
Browse files Browse the repository at this point in the history
  • Loading branch information
s0kil committed Jun 11, 2021
1 parent 973fa49 commit 620db80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IHP/IDE/CodeGen/Controller.hs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ instance Controller CodeGenController where

action CreateViewAction = do
let viewName = paramOrDefault "" "name"
let applicationName = "Web"
let applicationName = paramOrDefault "Web" "applicationName"
let controllerName = paramOrDefault "" "controllerName"
(Right plan) <- ViewGenerator.buildPlan viewName applicationName controllerName
executePlan plan
Expand All @@ -108,7 +108,7 @@ instance Controller CodeGenController where

action CreateMailAction = do
let mailName = paramOrDefault "" "name"
let applicationName = "Web"
let applicationName = paramOrDefault "Web" "applicationName"
let controllerName = paramOrDefault "" "controllerName"
(Right plan) <- MailGenerator.buildPlan mailName applicationName controllerName
executePlan plan
Expand Down

0 comments on commit 620db80

Please sign in to comment.