new props for org profile

This commit is contained in:
Kyle Spearrin 2017-05-08 15:28:40 -04:00
parent 1c5f208ef1
commit ea82925e14
2 changed files with 9 additions and 3 deletions

View File

@ -123,7 +123,10 @@ angular
key: profile.Organizations[i].Key, key: profile.Organizations[i].Key,
status: profile.Organizations[i].Status, status: profile.Organizations[i].Status,
type: profile.Organizations[i].Type, type: profile.Organizations[i].Type,
enabled: profile.Organizations[i].Enabled enabled: profile.Organizations[i].Enabled,
maxCollections: profile.Organizations[i].MaxCollections,
seats: profile.Organizations[i].Seats,
useGroups: profile.Organizations[i].UseGroups
}; };
} }
@ -151,7 +154,10 @@ angular
key: keyCt, key: keyCt,
status: 2, // 2 = Confirmed status: 2, // 2 = Confirmed
type: 0, // 0 = Owner type: 0, // 0 = Owner
enabled: true enabled: true,
maxCollections: org.MaxCollections,
seats: org.Seats,
useGroups: org.UseGroups
}; };
profile.organizations[o.id] = o; profile.organizations[o.id] = o;

View File

@ -80,7 +80,7 @@
</li> </li>
</ul> </ul>
</li> </li>
<li ng-class="{active: $state.is('backend.org.groups')}"> <li ng-class="{active: $state.is('backend.org.groups')}" ng-if="orgProfile.useGroups">
<a ui-sref="backend.org.groups({orgId: params.orgId})"> <a ui-sref="backend.org.groups({orgId: params.orgId})">
<i class="fa fa-sitemap fa-fw"></i> <span>Groups</span> <i class="fa fa-sitemap fa-fw"></i> <span>Groups</span>
</a> </a>