|
|
@ -1,4 +1,6 @@
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
using Ombi.Helpers;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Ombi.Settings.Settings.Models
|
|
|
|
namespace Ombi.Settings.Settings.Models
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -7,9 +9,14 @@ namespace Ombi.Settings.Settings.Models
|
|
|
|
public string ApplicationName { get; set; }
|
|
|
|
public string ApplicationName { get; set; }
|
|
|
|
public string ApplicationUrl { get; set; }
|
|
|
|
public string ApplicationUrl { get; set; }
|
|
|
|
public string CustomCssLink { get; set; }
|
|
|
|
public string CustomCssLink { get; set; }
|
|
|
|
|
|
|
|
public string Logo { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public string PresetThemeName { get; set; }
|
|
|
|
|
|
|
|
public string PresetThemeContent { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[NotMapped]
|
|
|
|
|
|
|
|
public bool HasPresetTheme => PresetThemeName.HasValue() || PresetThemeContent.HasValue();
|
|
|
|
|
|
|
|
|
|
|
|
//public string PresetTheme { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void AddToUrl(string part)
|
|
|
|
public void AddToUrl(string part)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (string.IsNullOrEmpty(ApplicationUrl))
|
|
|
|
if (string.IsNullOrEmpty(ApplicationUrl))
|
|
|
@ -27,6 +34,5 @@ namespace Ombi.Settings.Settings.Models
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ApplicationUrl = ApplicationUrl + part;
|
|
|
|
ApplicationUrl = ApplicationUrl + part;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public string Logo { get; set; }
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|