Added Charts
This commit is contained in:
@@ -24,11 +24,13 @@ class UserFlight extends Model
|
||||
'flight_class_id',
|
||||
'flight_reason_id',
|
||||
'note',
|
||||
'auto_update',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'departure_date' => 'immutable_datetime',
|
||||
'arrival_date' => 'immutable_datetime',
|
||||
'auto_update' => 'boolean',
|
||||
];
|
||||
|
||||
public function calculateGreatCircleDistance(): float{
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('user_flights', function (Blueprint $table) {
|
||||
$table->boolean('auto_update')->default(false)->after('note');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('user_flights', function (Blueprint $table) {
|
||||
$table->dropColumn('auto_update');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -349,7 +349,7 @@ const aircraftOptionsData = ref<{ value: number; title: string }[]>(props.flight
|
||||
<v-col cols="12">
|
||||
<v-checkbox
|
||||
v-model="form.auto_update"
|
||||
label="Automatically update aircraft details when flight departs."
|
||||
label="Automatically update aircraft details within 24 hours of flight departure."
|
||||
:disabled="!lookupComplete"
|
||||
hide-details
|
||||
density="compact"
|
||||
|
||||
Reference in New Issue
Block a user