qol: formatting

This commit is contained in:
Gary Sharp
2025-07-20 13:47:56 +10:00
parent 49da389c2c
commit 5792771ea1
158 changed files with 693 additions and 679 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
using System.Collections.Generic;
using Disco.Models.UI.Device;
using Disco.Models.UI.Device;
using System.Collections.Generic;
namespace Disco.Web.Models.Device
{
@@ -73,7 +73,7 @@ namespace Disco.Web.Models.InitialConfig
[CustomValidation(typeof(DatabaseModel), "SqlAuthRequired", ErrorMessage = "When using SQL Authentication a Username is required")]
public string Auth_SQL_Username { get; set; }
[DataType(DataType.Password), CustomValidation(typeof(DatabaseModel), "SqlAuthRequired", ErrorMessage="When using SQL Authentication a Password is required")]
[DataType(DataType.Password), CustomValidation(typeof(DatabaseModel), "SqlAuthRequired", ErrorMessage = "When using SQL Authentication a Password is required")]
public string Auth_SQL_Password { get; set; }
public List<SelectListItem> AuthMethods
+1 -1
View File
@@ -1,6 +1,6 @@
using Disco.Models.ClientServices;
using Disco.Models.Services.Jobs.Statistics;
using Disco.Models.Services.Jobs.JobLists;
using Disco.Models.Services.Jobs.Statistics;
using Disco.Models.UI.Job;
using System.Collections.Generic;
+1 -1
View File
@@ -6,8 +6,8 @@ using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Data.Entity;
using System.Linq;
namespace Disco.Web.Models.Job
{
+2 -1
View File
@@ -82,7 +82,8 @@ namespace Disco.Web.Models.Job
try
{
UserService.GetUser(jobUserId, Database, true);
} catch (Exception) {}
}
catch (Exception) { }
}
Job = Database.Jobs
+2 -2
View File
@@ -1,5 +1,5 @@
using Disco.Models.Services.Searching;
using Disco.Models.Services.Jobs.JobLists;
using Disco.Models.Services.Jobs.JobLists;
using Disco.Models.Services.Searching;
using Disco.Models.UI.Search;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
+1 -1
View File
@@ -69,7 +69,7 @@ namespace Disco.Web.Models.Shared
List<string> userCustomDetailKeys;
using (var database = new DiscoDataContext())
userCustomDetailKeys = database.UserDetails.Where(d => d.Scope == "Details").Select(d => d.Key).Distinct().OrderBy(k => k).ToList();
if (userCustomDetailKeys.Any())
{
var fieldKey = ((MemberExpression)modelAccessor.Body).Member.Name;