Random fixes. Lang file
This commit is contained in:
@@ -21,7 +21,9 @@ public class SmartTranslateHelper
|
|||||||
foreach (var line in lines)
|
foreach (var line in lines)
|
||||||
{
|
{
|
||||||
var parts = line.Split(";");
|
var parts = line.Split(";");
|
||||||
content.Add(parts[0], parts[1]);
|
|
||||||
|
if(!content.ContainsKey(parts[0]))
|
||||||
|
content.Add(parts[0], parts[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
Languages.Add(langKey, content);
|
Languages.Add(langKey, content);
|
||||||
|
|||||||
@@ -52,10 +52,7 @@ else
|
|||||||
{
|
{
|
||||||
receivedExceptions.Add(exception);
|
receivedExceptions.Add(exception);
|
||||||
|
|
||||||
var user = await IdentityService.Get();
|
Logger.Error($"An unhanded exception occured:");
|
||||||
var id = user == null ? -1 : user.Id;
|
|
||||||
|
|
||||||
Logger.Error($"[{id}] An unhanded exception occured:");
|
|
||||||
Logger.Error(exception);
|
Logger.Error(exception);
|
||||||
|
|
||||||
await base.OnErrorAsync(exception);
|
await base.OnErrorAsync(exception);
|
||||||
|
|||||||
@@ -100,23 +100,30 @@
|
|||||||
{
|
{
|
||||||
await lazyLoader.SetText(node.Name);
|
await lazyLoader.SetText(node.Name);
|
||||||
|
|
||||||
var containerStats = await NodeService.GetContainerStats(node);
|
try
|
||||||
|
|
||||||
foreach (var container in containerStats.Containers)
|
|
||||||
{
|
{
|
||||||
if (Guid.TryParse(container.Name, out Guid uuid))
|
var containerStats = await NodeService.GetContainerStats(node);
|
||||||
{
|
|
||||||
var server = ServerRepository
|
|
||||||
.Get()
|
|
||||||
.Include(x => x.Owner)
|
|
||||||
.FirstOrDefault(x => x.Uuid == uuid);
|
|
||||||
|
|
||||||
if (server != null)
|
foreach (var container in containerStats.Containers)
|
||||||
|
{
|
||||||
|
if (Guid.TryParse(container.Name, out Guid uuid))
|
||||||
{
|
{
|
||||||
Containers.Add(server, container);
|
var server = ServerRepository
|
||||||
|
.Get()
|
||||||
|
.Include(x => x.Owner)
|
||||||
|
.FirstOrDefault(x => x.Uuid == uuid);
|
||||||
|
|
||||||
|
if (server != null)
|
||||||
|
{
|
||||||
|
Containers.Add(server, container);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
// ignored
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -554,4 +554,5 @@ You have no domains;You have no domains
|
|||||||
We were not able to find any domains associated with your account;We were not able to find any domains associated with your account
|
We were not able to find any domains associated with your account;We were not able to find any domains associated with your account
|
||||||
You have no websites;You have no websites
|
You have no websites;You have no websites
|
||||||
We were not able to find any websites associated with your account;We were not able to find any websites associated with your account
|
We were not able to find any websites associated with your account;We were not able to find any websites associated with your account
|
||||||
The name should only consist of lower case characters;The name should only consist of lower case characters
|
Guest;Guest
|
||||||
|
You need a domain;You need a domain
|
||||||
|
|||||||
Reference in New Issue
Block a user