wip
This commit is contained in:
parent
ad04bdc99c
commit
fa2f34ba3c
@ -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()
|
||||||
{
|
{
|
||||||
|
@ -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()
|
||||||
|
@ -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']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user