Skip to content

Commit

Permalink
Fix check upgrade method
Browse files Browse the repository at this point in the history
  • Loading branch information
Timot Tarjani committed Mar 20, 2024
1 parent b0a2c6a commit 850579e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Controllers/UpgradeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function show($selectedVersion = null){

$releases = collect($this->updateManager->source()->getReleases()->json());

$available_list = $releases->filter(fn($release) => Comparator::greaterThan($release['tag_name'], $this->updateManager->source()->getVersionInstalled()));
$available_list = $releases->filter(fn($release) => Comparator::greaterThan($release['tag_name'], 'v'.$this->updateManager->source()->getVersionInstalled()));

$this->view->title(trans('settings.settings'));
return $this->view->render('upgrade/index', [
Expand Down
2 changes: 1 addition & 1 deletion app/View/upgrade/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class="list-group-item {{ $available['tag_name'] === $current_version ? 'active'
action="{{ route('upgrade.update', $available['tag_name']) }}">
@method('PUT')
@csrf
<button type="submit" class="btn btn-link m-0 p-0">Upgrade</button>
<button type="submit" class="btn btn-sm btn-primary">Upgrade</button>
</form>
</div>
</div>
Expand Down

0 comments on commit 850579e

Please sign in to comment.