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 }}  .col-xs-8 {{ invite.email }} 
div.small div.small
| #{translate("invite_not_accepted")}.  | #{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 .col-xs-3.text-left
// todo: get invite privileges // todo: get invite privileges
span(ng-show="invite.privileges == 'readAndWrite'") #{translate("can_edit")} span(ng-show="invite.privileges == 'readAndWrite'") #{translate("can_edit")}
span(ng-show="invite.privileges == 'readOnly'") #{translate("read_only")} span(ng-show="invite.privileges == 'readOnly'") #{translate("read_only")}
.col-xs-1 .col-xs-1(ng-show="isAdmin")
a( a(
href href
tooltip=translate('revoke_invite') 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 // Button Sizes
// -------------------------------------------------- // --------------------------------------------------