mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 06:20:21 +00:00
added color to mastertasks
This commit is contained in:
1 parent
28629dcf3a
commit
ca26843406
4 files changed
+39
No files matched your search
@@ -28,6 +28,7 @@ class MasterTaskResource extends JsonResource
|
|||||||
'employees' => UserResource::collection($this->usersOutsideTeam),
|
'employees' => UserResource::collection($this->usersOutsideTeam),
|
||||||
'subtasks' => SubTaskResource::collection($this->subtasks),
|
'subtasks' => SubTaskResource::collection($this->subtasks),
|
||||||
'files' => AttachmentResource::collection($this->attachments),
|
'files' => AttachmentResource::collection($this->attachments),
|
||||||
|
'color' => $this->color,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
'mastertask_background_colors' => ['#E9FFE5', '#F6ECD3', '#FDE1FF', '#FFC9C9', '#DADEF8', '#EDFFFE']
|
||||||
|
];
|
||||||
@@ -38,6 +38,7 @@ class MasterTaskFactory extends Factory
|
|||||||
'tracked_time' => fake()->numberBetween(4,20),
|
'tracked_time' => fake()->numberBetween(4,20),
|
||||||
'deadline' => fake()->dateTimeBetween('now', '+3 weeks'),
|
'deadline' => fake()->dateTimeBetween('now', '+3 weeks'),
|
||||||
'is_finished' => 0,
|
'is_finished' => 0,
|
||||||
|
'color' => fake()->randomElement(['#E9FFE5', '#F6ECD3', '#FDE1FF', '#FFC9C9', '#DADEF8', '#EDFFFE']),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::table('master_tasks', function (Blueprint $table) {
|
||||||
|
$table->string('color')->after('is_finished');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::table('master_task', function (Blueprint $table) {
|
||||||
|
//
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in new issue
Block a user