org owner check on side nav menu
This commit is contained in:
parent
5f2c2a8064
commit
f8c5f31f97
|
@ -38,4 +38,8 @@ angular
|
||||||
|
|
||||||
$state.go('backend.org.dashboard', { orgId: org.id });
|
$state.go('backend.org.dashboard', { orgId: org.id });
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.isOrgOwner = function (org) {
|
||||||
|
return org.type === 0;
|
||||||
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -46,12 +46,12 @@
|
||||||
<i class="fa fa-share-alt fa-fw"></i> <span>Subvaults</span>
|
<i class="fa fa-share-alt fa-fw"></i> <span>Subvaults</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li ng-class="{active: $state.is('backend.org.billing')}">
|
<li ng-class="{active: $state.is('backend.org.billing')}" ng-if="isOrgOwner(orgProfile)">
|
||||||
<a ui-sref="backend.org.billing({orgId: params.orgId})">
|
<a ui-sref="backend.org.billing({orgId: params.orgId})">
|
||||||
<i class="fa fa-credit-card fa-fw"></i> <span>Billing</span>
|
<i class="fa fa-credit-card fa-fw"></i> <span>Billing</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li ng-class="{active: $state.is('backend.org.settings')}">
|
<li ng-class="{active: $state.is('backend.org.settings')}" ng-if="isOrgOwner(orgProfile)">
|
||||||
<a ui-sref="backend.org.settings({orgId: params.orgId})">
|
<a ui-sref="backend.org.settings({orgId: params.orgId})">
|
||||||
<i class="fa fa-gears fa-fw"></i> <span>Settings</span>
|
<i class="fa fa-gears fa-fw"></i> <span>Settings</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in New Issue