Skip to content

A free open source IT asset/license management system

Rotate the arrows

snipe73e8b2b52e43
diff --git a/resources/views/settings/adapters.blade.php b/resources/views/settings/adapters.blade.php
index 4738faeb50..58ccab7912 100644
--- a/resources/views/settings/adapters.blade.php
+++ b/resources/views/settings/adapters.blade.php
@@ -171,10 +171,10 @@
<li class="adapter-catalog-item">
@php
$directionLabel = trans('admin/settings/sync_adapters.catalog_direction_'.$entry['direction']);
- $directionIcon = $entry['direction'] === 'both' ? 'fa-solid fa-up-down' : 'fa-solid fa-arrow-down';
+ $directionIcon = $entry['direction'] === 'both' ? 'fa-solid fa-arrow-right-arrow-left fa-rotate-90' : 'fa-solid fa-arrow-down-long';
@endphp
<span class="adapter-catalog-direction tooltip-base" data-placement="top" title="{{ trans('admin/settings/sync_adapters.catalog_direction_tooltip', ['direction' => $directionLabel]) }}">
- <i class="{{ $directionIcon }}" aria-hidden="true"></i>
+ <i class="{{ $directionIcon }} fa-fw" aria-hidden="true"></i>
<span class="sr-only">{{ $directionLabel }}</span>
</span>
<span class="adapter-catalog-docs">
diff --git a/tests/Feature/SyncAdapters/Addigy/AddigyAdapterTest.php b/tests/Feature/SyncAdapters/Addigy/AddigyAdapterTest.php
index cf8719b6b1..18ff22cf8f 100644
--- a/tests/Feature/SyncAdapters/Addigy/AddigyAdapterTest.php
+++ b/tests/Feature/SyncAdapters/Addigy/AddigyAdapterTest.php
@@ -267,7 +267,7 @@ class AddigyAdapterTest extends TestCase
SyncAdapterConfig::put($instance->id, 'direction.hostname', 'push');
$asset = \App\Models\Asset::factory()->create(['name' => 'pushed-mbp']);
- $this->seedExternalSource($instance->id, $asset->id, 'agent-push-1');
+ $this->seedExternalSource($asset->id, 'agent-push-1');
Http::fake([
'api.addigy.com/api/v2/mdm/settings/device/name' => Http::response([], 200),
@@ -293,7 +293,7 @@ class AddigyAdapterTest extends TestCase
// No direction stored: default is 'pull' for standard fields.
$asset = \App\Models\Asset::factory()->create(['name' => 'quiet-host']);
- $this->seedExternalSource($instance->id, $asset->id, 'agent-quiet');
+ $this->seedExternalSource($asset->id, 'agent-quiet');
Http::fake();
@@ -315,7 +315,7 @@ class AddigyAdapterTest extends TestCase
'assigned_to' => $user->id,
'assigned_type' => \App\Models\User::class,
]);
- $this->seedExternalSource($instance->id, $asset->id, 'agent-user-1');
+ $this->seedExternalSource($asset->id, 'agent-user-1');
Http::fake([
'api.addigy.com/api/v2/o/org-xyz/end-users/query' => Http::response([
@@ -350,7 +350,7 @@ class AddigyAdapterTest extends TestCase
'assigned_to' => $user->id,
'assigned_type' => \App\Models\User::class,
]);
- $this->seedExternalSource($instance->id, $asset->id, 'agent-user-2');
+ $this->seedExternalSource($asset->id, 'agent-user-2');
Http::fake();
@@ -372,7 +372,7 @@ class AddigyAdapterTest extends TestCase
'assigned_to' => $user->id,
'assigned_type' => \App\Models\User::class,
]);
- $this->seedExternalSource($instance->id, $asset->id, 'agent-user-3');
+ $this->seedExternalSource($asset->id, 'agent-user-3');
Http::fake([
'api.addigy.com/api/v2/o/org-xyz/end-users/query' => Http::response([
@@ -408,7 +408,7 @@ class AddigyAdapterTest extends TestCase
'assigned_to' => $user->id,
'assigned_type' => \App\Models\User::class,
]);
- $this->seedExternalSource($instance->id, $asset->id, 'agent-gated');
+ $this->seedExternalSource($asset->id, 'agent-gated');
Http::fake([
'api.addigy.com/api/v2/mdm/settings/device/name' => Http::response([], 200),
@@ -447,7 +447,7 @@ class AddigyAdapterTest extends TestCase
return new AddigyAdapter($instance->fresh());
}
- private function seedExternalSource(int $instanceId, int $assetId, string $externalId): void
+ private function seedExternalSource(int $assetId, string $externalId): void
{
\App\Models\AssetExternalSource::query()->create([
'asset_id' => $assetId,