mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-29 07:33:44 +00:00
Rename view variable to invite
Makes the meaning more explicit
This commit is contained in:
parent
6639f61a43
commit
5e70825c94
4 changed files with 6 additions and 6 deletions
services/web
app
coffee/Features/Subscription
views/subscriptions
public/coffee/main
|
@ -76,12 +76,12 @@ buildUserViewModel = (user)->
|
|||
email: user.email
|
||||
first_name: user.first_name
|
||||
last_name: user.last_name
|
||||
holdingAccount: user.holdingAccount
|
||||
invite: user.holdingAccount
|
||||
_id: user._id
|
||||
return u
|
||||
|
||||
buildEmailInviteViewModel = (email) ->
|
||||
return {
|
||||
email: email
|
||||
holdingAccount: true
|
||||
invite: true
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ module.exports =
|
|||
TeamInvitesHandler.createManagerInvite teamManagerId, email, (err, invite) ->
|
||||
return handleError(err, req, res, next) if err?
|
||||
inviteView = { user:
|
||||
{ email: invite.email, sentAt: invite.sentAt, holdingAccount: true }
|
||||
{ email: invite.email, sentAt: invite.sentAt, invite: true }
|
||||
}
|
||||
res.json inviteView
|
||||
|
||||
|
|
|
@ -49,8 +49,8 @@ block content
|
|||
span.name {{ user.first_name }} {{ user.last_name }}
|
||||
.col-md-2
|
||||
span.registered
|
||||
i.fa.fa-check.text-success(ng-show="!user.holdingAccount")
|
||||
i.fa.fa-times(ng-show="user.holdingAccount")
|
||||
i.fa.fa-check.text-success(ng-show="!user.invite")
|
||||
i.fa.fa-times(ng-show="user.invite")
|
||||
li(
|
||||
ng-if="users.length == 0",
|
||||
ng-cloak
|
||||
|
|
|
@ -34,7 +34,7 @@ define [
|
|||
$scope.removeMembers = () ->
|
||||
for user in $scope.selectedUsers
|
||||
do (user) ->
|
||||
if user.holdingAccount and !user._id?
|
||||
if user.invite and !user._id?
|
||||
url = "/subscription/invites/#{encodeURIComponent(user.email)}"
|
||||
else
|
||||
url = "/subscription/group/user/#{user._id}"
|
||||
|
|
Loading…
Reference in a new issue