Skip to content

Commit

Permalink
Merge pull request #216 from Gid733/master
Browse files Browse the repository at this point in the history
Fix menu for disabled items
  • Loading branch information
renemadsen authored Feb 22, 2019
2 parents 7e408d8 + 04318d7 commit 850a193
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
5 changes: 1 addition & 4 deletions eFormAPI/eFormAPI.Web/Hosting/Helpers/PluginHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,16 @@ public static List<IEformPlugin> GetPlugins(IConfiguration configuration)
{
var pluginDbName = $"Database={dbPrefix}_{plugin.PluginId};";
var pluginConnectionString = connectionString.Replace(dbNameSection, pluginDbName);
var newPlugin = new EformPlugin()
var newPlugin = new EformPlugin
{
PluginId = plugin.PluginId,
ConnectionString = pluginConnectionString,
Status = (int) PluginStatus.Disabled
};
dbContext.EformPlugins.Add(newPlugin);
dbContext.SaveChanges();
plugins.Add(plugin);
}
}


}
}

Expand Down
1 change: 0 additions & 1 deletion eFormAPI/eFormAPI.Web/Services/UserService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public class UserService : IUserService
private readonly IHttpContextAccessor _httpAccessor;
private readonly BaseDbContext _dbContext;


public UserService(BaseDbContext dbContext,
UserManager<EformUser> userManager,
IHttpContextAccessor httpAccessor)
Expand Down
1 change: 0 additions & 1 deletion eFormAPI/eFormAPI.Web/Services/WorkersService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ public OperationResult Update(WorkerModel workerModel)
}
}


public OperationResult Сreate(WorkerCreateModel model)
{
try
Expand Down

0 comments on commit 850a193

Please sign in to comment.