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();
}
[Route("budget/{name}")]
public IActionResult Index(string name)
{

View File

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

View File

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

View File

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

View File

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