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 @@ protected static function booted()
];
static public function ownedByCurrentTeam()
{
return Project::whereTeamId(session('currentTeam')->id);
return Project::whereTeamId(session('currentTeam')->id)->orderBy('name');
}
public function team()
{

View File

@ -87,7 +87,7 @@ public function muxFilename()
static public function ownedByCurrentTeam(array $select = ['*'])
{
$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()

View File

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