This commit is contained in:
Andras Bacsai 2023-06-22 14:31:23 +02:00
parent ad04bdc99c
commit fa2f34ba3c
3 changed files with 3 additions and 2 deletions

View File

@ -24,7 +24,7 @@ class Project extends BaseModel
]; ];
static public function ownedByCurrentTeam() static public function ownedByCurrentTeam()
{ {
return Project::whereTeamId(session('currentTeam')->id); return Project::whereTeamId(session('currentTeam')->id)->orderBy('name');
} }
public function team() public function team()
{ {

View File

@ -87,7 +87,7 @@ class Server extends BaseModel
static public function ownedByCurrentTeam(array $select = ['*']) static public function ownedByCurrentTeam(array $select = ['*'])
{ {
$selectArray = collect($select)->concat(['id']); $selectArray = collect($select)->concat(['id']);
return Server::whereTeamId(session('currentTeam')->id)->with('settings')->select($selectArray->all()); return Server::whereTeamId(session('currentTeam')->id)->with('settings')->select($selectArray->all())->orderBy('name');
} }
static public function validated() static public function validated()

View File

@ -307,6 +307,7 @@ const magicActions = [{
{ {
id: 8, id: 8,
name: 'Create: Team', name: 'Create: Team',
tags: 'team,member,new,create',
icon: 'team', icon: 'team',
new: true, new: true,
sequence: ['main', 'redirect'] sequence: ['main', 'redirect']