Same same
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Elias Jansson
2026-02-11 19:56:31 +01:00
parent 8da7888933
commit 7b3c0998a0
5 changed files with 3 additions and 2 deletions

View File

@@ -25,6 +25,7 @@ namespace Aberwyn.Controllers
return View(); return View();
} }
[Route("budget/{name}")] [Route("budget/{name}")]
public IActionResult Index(string name) public IActionResult Index(string name)
{ {

View File

@@ -54,6 +54,7 @@ namespace Aberwyn.Data
throw new Exception("Midsummer not found"); throw new Exception("Midsummer not found");
} }
private static DateTime GetEasterSunday(int year) private static DateTime GetEasterSunday(int year)
{ {
// Meeus/Jones/Butcher // Meeus/Jones/Butcher

View File

@@ -27,7 +27,6 @@ namespace Aberwyn.Models
[JsonIgnore] [JsonIgnore]
[ValidateNever] [ValidateNever]
public BudgetPeriod BudgetPeriod { get; set; } public BudgetPeriod BudgetPeriod { get; set; }
public List<BudgetItem> Items { get; set; } = new(); public List<BudgetItem> Items { get; set; } = new();
} }

View File

@@ -1,6 +1,7 @@
@attribute [Authorize(Roles = "Budget")] @attribute [Authorize(Roles = "Budget")]
@using Microsoft.AspNetCore.Authorization @using Microsoft.AspNetCore.Authorization
@{ @{
ViewData["Title"] = "Budget"; ViewData["Title"] = "Budget";
} }

View File

@@ -135,7 +135,6 @@ app.controller('BudgetController', function ($scope, $http) {
$scope.showToast = function (message, isError = false) { $scope.showToast = function (message, isError = false) {
const toast = document.createElement("div"); const toast = document.createElement("div");
toast.className = "toast" + (isError ? " error" : "") + " show"; toast.className = "toast" + (isError ? " error" : "") + " show";