'.$this->name.'
';
+ $msg = 'Initialize Docker Swarm cluster';
if ($this->forceNewCluster) {
$msg .= ' with force cluster creation';
}
diff --git a/app/Models/Swarm.php b/app/Models/Swarm.php
index 454ef78..137fb72 100644
--- a/app/Models/Swarm.php
+++ b/app/Models/Swarm.php
@@ -13,7 +13,6 @@ class Swarm extends Model
use HasOwningTeam;
protected $fillable = [
- 'name',
'data',
'team_id',
];
diff --git a/app/Notifications/TrialEndsSoonNotification.php b/app/Notifications/TrialEndsSoonNotification.php
index 91c1f96..3241073 100644
--- a/app/Notifications/TrialEndsSoonNotification.php
+++ b/app/Notifications/TrialEndsSoonNotification.php
@@ -45,7 +45,7 @@ public function toMail(object $notifiable): MailMessage
$dateDiff = $nextPayment->date->longRelativeToNowDiffForHumans();
return (new MailMessage)
- ->subject("Your trial ends in {$dateDiff}")
+ ->subject("Your free trial ends in {$dateDiff}")
->greeting("Hello {$this->team->customer->name}!")
->line('Your trial for team '.$this->team->name.' ends soon.')
->line("You will be charged {$nextPayment->amount()} on {$nextPayment->date->toDateTimeString()} ({$dateDiff}).")
diff --git a/database/migrations/2024_08_20_202958_alter_swarms_remove_name_column.php b/database/migrations/2024_08_20_202958_alter_swarms_remove_name_column.php
new file mode 100644
index 0000000..acf5cc0
--- /dev/null
+++ b/database/migrations/2024_08_20_202958_alter_swarms_remove_name_column.php
@@ -0,0 +1,35 @@
+dropColumn('name');
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ */
+ public function down(): void
+ {
+ Schema::table('swarms', function (Blueprint $table) {
+ $table->string('name')->after('id');
+ });
+
+ DB::table('swarms')->update(['name' => DB::raw('CAST(id AS VARCHAR)')]);
+
+ Schema::table('swarms', function (Blueprint $table) {
+ $table->string('name')->nullable(false)->change();
+ });
+ }
+};
diff --git a/resources/js/Pages/Nodes/Partials/InitSwarmCluster.vue b/resources/js/Pages/Nodes/Partials/InitSwarmCluster.vue
new file mode 100644
index 0000000..0d7ea7f
--- /dev/null
+++ b/resources/js/Pages/Nodes/Partials/InitSwarmCluster.vue
@@ -0,0 +1,88 @@
+
+
+
+ - You have reached the maximum number of Swarm - Clusters allowed. -
- - -- Please initialize a cluster first - no Swarm - Clusters exist yet. -
- - -You can update the name of the service. Currently it is not possible to move the service between swarms and/or teams.
-The service name change will affect only the UI and not the actual service on the Docker Swarm.
- - - -+ You can update the name of the service. Currently it is not + possible to move the service between swarms and/or teams. +
++ The service name change will affect only the UI and not the + actual service on the Docker Swarm. +
+ + + +