Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Web/Resgrid.Web/Areas/User/Views/Dispatch/Dashboard.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@{
ViewBag.Title = "Resgrid | " + @commonLocalizer["CallsModule"];
Layout = "~/Areas/User/Views/Shared/_UserLayout.cshtml";
ViewBag.LoadAngular = true;
}
@section Styles
{
Expand Down
1 change: 1 addition & 0 deletions Web/Resgrid.Web/Areas/User/Views/Mapping/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@inject IStringLocalizer<Resgrid.Localization.Areas.User.Mapping.Mapping> localizer
@{
ViewBag.Title = "Resgrid | " + localizer["MappingHeader"];
ViewBag.LoadAngular = true;
}
@section Styles
{
Expand Down
30 changes: 18 additions & 12 deletions Web/Resgrid.Web/Areas/User/Views/Shared/_UserLayout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@

<link rel="stylesheet" href="/css/int-bundle.css" />

<link rel="stylesheet" href="/js/ng/styles.css" />
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
@if (ViewBag.LoadAngular == true)
{
<link rel="stylesheet" href="/js/ng/styles.css" />
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
}

<link rel="shortcut icon" href="~/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="~/images/apple-touch-icon.png">
Expand Down Expand Up @@ -127,16 +130,19 @@
localStorage.setItem("RgWebApp.auth-tokens", '@Html.Raw(await JavasriptHelpers.GetApiToken())');
</script>

<environment names="Release,Staging,Production,Docker">
<script src="/js/ng/app.js"></script>
</environment>

<environment names="Development">
<script src="/js/ng/runtime.js" asp-append-version="false"></script>
<script src="/js/ng/polyfills.js" asp-append-version="false"></script>
<script src="/js/ng/vendor.js" asp-append-version="false"></script>
<script src="/js/ng/main.js" asp-append-version="false"></script>
</environment>
@if (ViewBag.LoadAngular == true)
{
<environment names="Release,Staging,Production,Docker">
<script src="/js/ng/app.js"></script>
</environment>

<environment names="Development">
<script src="/js/ng/runtime.js" asp-append-version="false"></script>
<script src="/js/ng/polyfills.js" asp-append-version="false"></script>
<script src="/js/ng/vendor.js" asp-append-version="false"></script>
<script src="/js/ng/main.js" asp-append-version="false"></script>
</environment>
}

@if (IsSectionDefined("Scripts"))
{
Expand Down
1 change: 1 addition & 0 deletions Web/Resgrid.Web/Areas/User/Views/Shifts/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@{
ViewBag.Title = "Resgrid | " + localizer["ShiftsHeader"];
Layout = "~/Areas/User/Views/Shared/_UserLayout.cshtml";
ViewBag.LoadAngular = true;
}

@section Styles
Expand Down
Loading