Merge pull request #1419 from sharelatex/as-fix-invites-permissions

Fix invite permissions in share modal

GitOrigin-RevId: 8fe073faebcd84236ac58671820166a2ad73262f
This commit is contained in:
Simon Detheridge 2019-01-18 10:09:57 +00:00 committed by sharelatex
parent 88249226f4
commit 6650dfe494
2 changed files with 12 additions and 2 deletions

View file

@ -88,12 +88,15 @@ script(type='text/ng-template', id='shareProjectModalTemplate')
.col-xs-8 {{ invite.email }} 
div.small
| #{translate("invite_not_accepted")}. 
a(href="#", ng-click="resendInvite(invite, $event)") #{translate("resend")}
button.btn.btn-inline-link(
ng-show="isAdmin",
ng-click="resendInvite(invite, $event)"
) #{translate("resend")}
.col-xs-3.text-left
// todo: get invite privileges
span(ng-show="invite.privileges == 'readAndWrite'") #{translate("can_edit")}
span(ng-show="invite.privileges == 'readOnly'") #{translate("read_only")}
.col-xs-1
.col-xs-1(ng-show="isAdmin")
a(
href
tooltip=translate('revoke_invite')

View file

@ -121,6 +121,13 @@
}
}
.btn-inline-link {
.btn-link();
padding: 0;
font-size: inherit;
vertical-align: inherit;
}
// Button Sizes
// --------------------------------------------------