Improved name creation

This commit is contained in:
Thijmen Stavenuiter
2024-06-22 10:41:15 +02:00
parent 4acdd8df12
commit 76a0659335
52 changed files with 151 additions and 51 deletions

View File

@@ -47,4 +47,14 @@ class InstanceSettings extends Model implements SendsEmail
return explode(',', $recipients);
}
public function getTitleDisplayName(): string
{
$instanceName = $this->instance_name;
if (! $instanceName) {
return '';
}
return "[{$instanceName}]";
}
}

View File

@@ -2,4 +2,6 @@
namespace App\Models;
class Kubernetes extends BaseModel {}
class Kubernetes extends BaseModel
{
}