Skip to content

Commit

Permalink
Include Craft version in the addon list
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbushnell committed Apr 17, 2024
1 parent a2ad551 commit 1d4afac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "trendyminds/orbit-craft",
"type": "craft-plugin",
"version": "1.0.3",
"version": "1.0.4",
"license": "MIT",
"authors": [
{
Expand Down
8 changes: 7 additions & 1 deletion src/console/controllers/SyncController.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,13 @@ public function actionIndex(): int
'version' => $addon->version,
'latest_version' => $updates->firstWhere('name', $addon->packageName)['latest_version'] ?? null,
];
})->sortBy('name')->values()->toArray(),
})->sortBy('name')
->prepend([
'name' => "Craft CMS",
'package' => "craftcms/cms",
'version' => Craft::$app->getVersion(),
'latest_version' => $allUpdates->cms->releases[0]->version ?? null,
])->values()->toArray(),
];

try {
Expand Down

0 comments on commit 1d4afac

Please sign in to comment.