From f4c9c5e3edcf3d57f2b6121aedf3bacdd98ba76a Mon Sep 17 00:00:00 2001 From: Josiah Jones Date: Sat, 28 Aug 2021 15:47:59 -0500 Subject: [PATCH 1/3] Add affiliations update button --- src/Config/web.jobnames.php | 1 + src/resources/lang/en/seat.php | 1 + src/resources/views/character/includes/summary.blade.php | 1 + 3 files changed, 3 insertions(+) diff --git a/src/Config/web.jobnames.php b/src/Config/web.jobnames.php index 528d0dbfe..a142a17a2 100644 --- a/src/Config/web.jobnames.php +++ b/src/Config/web.jobnames.php @@ -24,6 +24,7 @@ return [ 'character' => [ + 'affiliations' => \Seat\Eveapi\Jobs\Esi\Update\Affiliations::class, 'assets' => \Seat\Eveapi\Jobs\Assets\Character\Assets::class, 'blueprints' => \Seat\Eveapi\Jobs\Character\Blueprints::class, 'calendar' => [ diff --git a/src/resources/lang/en/seat.php b/src/resources/lang/en/seat.php index 562ff1ece..54b6e2964 100644 --- a/src/resources/lang/en/seat.php +++ b/src/resources/lang/en/seat.php @@ -452,6 +452,7 @@ 'profiles as well. Leave blank to use the default. If you enter something below, you must ensure at least one button is shown.', // Updaters + 'update_affiliation' => 'Update Affiliation|Update Affiliations' 'update_dispatched' => 'Update job has successfully been dispatched. Please check back again ' . 'in a few moments.', 'update_failed' => 'Update job dispatching failed. Please contact your SeAT administrator.', diff --git a/src/resources/views/character/includes/summary.blade.php b/src/resources/views/character/includes/summary.blade.php index 62462979b..b2cd1deae 100644 --- a/src/resources/views/character/includes/summary.blade.php +++ b/src/resources/views/character/includes/summary.blade.php @@ -24,6 +24,7 @@

@include('web::partials.corporation', ['corporation' => $character->affiliation->corporation]) + @include('web::components.jobs.buttons.update', ['type' => 'character', 'entity' => $character->character_id, 'job' => 'character.affiliations', 'label' => trans('web::seat.update_affiliation', 1)])