Skip to content

Commit

Permalink
Changed naming from TrackingEvent to TrackingState.
Browse files Browse the repository at this point in the history
  • Loading branch information
xGrz committed Jun 7, 2024
1 parent 7233392 commit 2b2f0ee
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion resources/views/settings/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class="flex gap-2 items-center p-4 bg-slate-800 hover:bg-slate-700 hover:text-sl
<x-p::icons.settings class="w-5 h-5"/>
TODO: Shipment diamentions defaults
</a>
<a href="{{ route('dhl24.settings.tracking-events.index') }}"
<a href="{{ route('dhl24.settings.tracking-states.index') }}"
class="flex gap-2 items-center p-4 bg-slate-800 hover:bg-slate-700 hover:text-slate-100 transition-all cursor-pointer">
<x-p::icons.settings class="w-5 h-5"/>
Tracking status configuration
Expand Down
2 changes: 1 addition & 1 deletion resources/views/settings/tracking-settings-index.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@extends('p::app')

@section('content')
@livewire('tracking-events-listing')
@livewire('tracking-states-listing')
@endsection
2 changes: 1 addition & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
Route::get('/', SettingsController::class)->name('index');
Route::get('/costCenters', SettingsCostCentersController::class)->name('costCenters.index');
Route::get('/contents', SettingsContentsController::class)->name('contents.index');
Route::get('/tracking-events',SettingsTrackingEventsController::class)->name('tracking-events.index');
Route::get('/tracking-states',SettingsTrackingEventsController::class)->name('tracking-states.index');
});
});

8 changes: 4 additions & 4 deletions src/DHLUIServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
use xGrz\Dhl24UI\Livewire\Settings\CostsCenter\CostCenterDelete;
use xGrz\Dhl24UI\Livewire\Settings\CostsCenter\CostCenterEdit;
use xGrz\Dhl24UI\Livewire\Settings\CostsCenter\CostCenterListing;
use xGrz\Dhl24UI\Livewire\Settings\TrackingEvents\TrackingEventEdit;
use xGrz\Dhl24UI\Livewire\Settings\TrackingEvents\TrackingEventListing;
use xGrz\Dhl24UI\Livewire\Settings\TrackingStates\TrackingStateEdit;
use xGrz\Dhl24UI\Livewire\Settings\TrackingStates\TrackingStateListing;
use xGrz\Dhl24UI\Livewire\ShipmentListItem;
use xGrz\Dhl24UI\Livewire\ShipmentServices;

Expand All @@ -41,8 +41,8 @@ public function boot(): void
Livewire::component('content-create', ContentCreate::class);
Livewire::component('content-edit', ContentEdit::class);
Livewire::component('content-delete', ContentDelete::class);
Livewire::component('tracking-events-listing', TrackingEventListing::class);
Livewire::component('tracking-event-edit', TrackingEventEdit::class);
Livewire::component('tracking-states-listing', TrackingStateListing::class);
Livewire::component('tracking-event-edit', TrackingStateEdit::class);

}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

namespace xGrz\Dhl24UI\Livewire\Settings\TrackingEvents;
namespace xGrz\Dhl24UI\Livewire\Settings\TrackingStates;

use Illuminate\View\View;
use Livewire\Attributes\Validate;
use LivewireUI\Modal\ModalComponent;
use xGrz\Dhl24\Enums\DHLStatusType;
use xGrz\Dhl24\Models\DHLTrackingState;

class TrackingEventEdit extends ModalComponent
class TrackingStateEdit extends ModalComponent
{
public DHLTrackingState $event;
public $types = [];
Expand All @@ -28,7 +28,7 @@ public function mount(DHLTrackingState $event): void
}
public function render(): View
{
return view('dhl-ui::settings.livewire.tracking-events.tracking-event-edit',[
return view('dhl-ui::settings.livewire.tracking-states.tracking-state-edit',[
'title' => 'Edit event description',
]);
}
Expand All @@ -50,7 +50,7 @@ public function update(): void
]);
$this->closeModal();
session()->flash('success', 'Tracking event successfully updated.');
$this->redirectRoute('dhl24.settings.tracking-events.index');
$this->redirectRoute('dhl24.settings.tracking-states.index');
}

}
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace xGrz\Dhl24UI\Livewire\Settings\TrackingEvents;
namespace xGrz\Dhl24UI\Livewire\Settings\TrackingStates;

use Illuminate\Database\Eloquent\Collection;
use Illuminate\View\View;
use Livewire\Component;
use xGrz\Dhl24\Facades\DHL24;

class TrackingEventListing extends Component
class TrackingStateListing extends Component
{
public Collection $events;

Expand All @@ -21,7 +21,7 @@ public function mount(): void

public function render(): View
{
return view('dhl-ui::settings.livewire.tracking-events.tracking-event-listing');
return view('dhl-ui::settings.livewire.tracking-states.tracking-state-listing');
}


Expand Down

0 comments on commit 2b2f0ee

Please sign in to comment.