diff --git a/src/Config/web.jobnames.php b/src/Config/web.jobnames.php index 5ff09fce2..d28597703 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 eed82d729..cc87c3417 100644 --- a/src/resources/lang/en/seat.php +++ b/src/resources/lang/en/seat.php @@ -453,6 +453,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..bb9d9c386 100644 --- a/src/resources/views/character/includes/summary.blade.php +++ b/src/resources/views/character/includes/summary.blade.php @@ -151,13 +151,16 @@ - @can('global.superuser') - @if(! is_null($character->refresh_token)) - - {{ trans_choice('web::seat.user', 1) }} - - @endif - @endcan + + @can('global.superuser') + @if(! is_null($character->refresh_token)) + + {{ trans_choice('web::seat.user', 1) }} + + @endif + @endcan + @include('web::components.jobs.buttons.update', ['type' => 'character', 'entity' => $character->character_id, 'job' => 'character.affiliations', 'label' => trans('web::seat.update_affiliation', 1)]) +