From 8805447bb94ca19f564c6ab67fb8e8ef045960c3 Mon Sep 17 00:00:00 2001 From: Hugh O'Brien Date: Wed, 19 Sep 2018 12:28:39 +0100 Subject: [PATCH] Revert "Add notification to confirm unconfirmed emails" --- .../app/views/project/list/notifications.pug | 18 ------------------ .../notifications-controller.coffee | 13 ------------- 2 files changed, 31 deletions(-) diff --git a/services/web/app/views/project/list/notifications.pug b/services/web/app/views/project/list/notifications.pug index 7b991c40a9..04ba3827dc 100644 --- a/services/web/app/views/project/list/notifications.pug +++ b/services/web/app/views/project/list/notifications.pug @@ -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')}) diff --git a/services/web/public/coffee/main/project-list/notifications-controller.coffee b/services/web/public/coffee/main/project-list/notifications-controller.coffee index 8e9e49677c..647ffd8c88 100644 --- a/services/web/public/coffee/main/project-list/notifications-controller.coffee +++ b/services/web/public/coffee/main/project-list/notifications-controller.coffee @@ -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