mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Revert "Add notification to confirm unconfirmed emails"
This commit is contained in:
parent
b377b89447
commit
8805447bb9
2 changed files with 0 additions and 31 deletions
|
@ -82,21 +82,3 @@ span(ng-controller="NotificationsController").userNotifications
|
|||
button(ng-click="dismiss(notification)").close.pull-right
|
||||
span(aria-hidden="true") ×
|
||||
span.sr-only #{translate("close")}
|
||||
|
||||
ul.list-unstyled.notifications-list(
|
||||
ng-controller="EmailNotificationController",
|
||||
ng-cloak
|
||||
)
|
||||
li.notification_entry(
|
||||
ng-repeat="userEmail in userEmails",
|
||||
ng-if="!userEmail.confirmedAt"
|
||||
)
|
||||
.row
|
||||
.col-xs-12
|
||||
.alert.alert-warning
|
||||
.notification_inner
|
||||
| Please confirm your email {{userEmail.email}} by clicking on the link in the confirmation email
|
||||
a(
|
||||
href,
|
||||
ng-click="resendConfirmationEmail(userEmail)"
|
||||
) (#{translate('resend_confirmation_email')})
|
||||
|
|
|
@ -53,16 +53,3 @@ define [
|
|||
localStorage('overleaf_v1_notification_hidden_at', Date.now())
|
||||
else
|
||||
localStorage('overleaf_v1_notification_hidden_at', null)
|
||||
|
||||
App.controller "EmailNotificationController", ($scope, $http, UserAffiliationsDataService) ->
|
||||
$scope.userEmails = []
|
||||
|
||||
_getUserEmails = () ->
|
||||
UserAffiliationsDataService
|
||||
.getUserEmails().then (emails) ->
|
||||
$scope.userEmails = emails
|
||||
_getUserEmails()
|
||||
|
||||
$scope.resendConfirmationEmail = (userEmail) ->
|
||||
UserAffiliationsDataService
|
||||
.resendConfirmationEmail userEmail.email
|
||||
|
|
Loading…
Reference in a new issue