This commit is contained in:
Rene Schwarz
2021-04-19 06:35:17 +02:00
parent e220c09ec3
commit 981ad26b1b
59 changed files with 1198 additions and 273 deletions

View File

@@ -9,13 +9,14 @@ namespace Server_Dashboard {
public ServerInformation ServerInfo { get; set; }
public string StatusIndicator { get; set; }
public string StatusIndicatorBG { get; set; }
public bool ActiveConnection { get; set; }
public bool ServerAvailable { get; set; }
public string ModuleIcon { get; set; }
public string CreationDate { get; set; }
public DashboardModule(bool activeConnection) {
ActiveConnection = activeConnection;
StatusIndicator = ActiveConnection ? "#20c657" : "#e53935";
StatusIndicatorBG = ActiveConnection ? "#94eeb0" : "#ef9a9a";
public DashboardModule(bool serverAvailable) {
ServerAvailable = serverAvailable;
StatusIndicator = ServerAvailable ? "#20c657" : "#e53935";
StatusIndicatorBG = ServerAvailable ? "#94eeb0" : "#ef9a9a";
}
}
}