summaryrefslogtreecommitdiffstats
path: root/client/components
diff options
context:
space:
mode:
authorguillaume <guillaume.cassou@supinfo.com>2018-10-11 16:44:52 +0200
committerguillaume <guillaume.cassou@supinfo.com>2018-10-11 16:44:52 +0200
commitb925b8e74d8cb55edcb570819cffcb9f0dc061fc (patch)
tree5fa828a5aafc09b5a652999fa0540703fb355b31 /client/components
parent28a01862d04654784bd6010035c3a6fe1690ba60 (diff)
downloadwekan-b925b8e74d8cb55edcb570819cffcb9f0dc061fc.tar.gz
wekan-b925b8e74d8cb55edcb570819cffcb9f0dc061fc.tar.bz2
wekan-b925b8e74d8cb55edcb570819cffcb9f0dc061fc.zip
improve notifications
Diffstat (limited to 'client/components')
-rw-r--r--client/components/users/userHeader.jade18
-rw-r--r--client/components/users/userHeader.js20
2 files changed, 0 insertions, 38 deletions
diff --git a/client/components/users/userHeader.jade b/client/components/users/userHeader.jade
index a8fdb143..b6e10d8a 100644
--- a/client/components/users/userHeader.jade
+++ b/client/components/users/userHeader.jade
@@ -17,7 +17,6 @@ template(name="memberMenuPopup")
li: a.js-change-avatar {{_ 'edit-avatar'}}
li: a.js-change-password {{_ 'changePasswordPopup-title'}}
li: a.js-change-language {{_ 'changeLanguagePopup-title'}}
- li: a.js-edit-notification {{_ 'editNotificationPopup-title'}}
if currentUser.isAdmin
li: a.js-go-setting(href="{{pathFor 'setting'}}") {{_ 'admin-panel'}}
hr
@@ -50,23 +49,6 @@ template(name="editProfilePopup")
input.js-profile-email(type="email" value="{{emails.[0].address}}" readonly)
input.primary.wide(type="submit" value="{{_ 'save'}}")
-template(name="editNotificationPopup")
- ul.pop-over-list
- li
- a.js-toggle-tag-notify-watch
- i.fa.fa-eye.colorful
- | {{_ 'watching'}}
- if hasTag "notify-watch"
- i.fa.fa-check
- span.sub-name {{_ 'notify-watch'}}
- li
- a.js-toggle-tag-notify-participate
- i.fa.fa-bell.colorful
- | {{_ 'tracking'}}
- if hasTag "notify-participate"
- i.fa.fa-check
- span.sub-name {{_ 'notify-participate'}}
-
template(name="changePasswordPopup")
+atForm(state='changePwd')
diff --git a/client/components/users/userHeader.js b/client/components/users/userHeader.js
index d96a9b3d..63cbb14f 100644
--- a/client/components/users/userHeader.js
+++ b/client/components/users/userHeader.js
@@ -9,7 +9,6 @@ Template.memberMenuPopup.events({
'click .js-change-avatar': Popup.open('changeAvatar'),
'click .js-change-password': Popup.open('changePassword'),
'click .js-change-language': Popup.open('changeLanguage'),
- 'click .js-edit-notification': Popup.open('editNotification'),
'click .js-logout'(evt) {
evt.preventDefault();
@@ -89,25 +88,6 @@ Template.editProfilePopup.events({
},
});
-Template.editNotificationPopup.helpers({
- hasTag(tag) {
- const user = Meteor.user();
- return user && user.hasTag(tag);
- },
-});
-
-// we defined github like rules, see: https://github.com/settings/notifications
-Template.editNotificationPopup.events({
- 'click .js-toggle-tag-notify-participate'() {
- const user = Meteor.user();
- if (user) user.toggleTag('notify-participate');
- },
- 'click .js-toggle-tag-notify-watch'() {
- const user = Meteor.user();
- if (user) user.toggleTag('notify-watch');
- },
-});
-
// XXX For some reason the useraccounts autofocus isnt working in this case.
// See https://github.com/meteor-useraccounts/core/issues/384
Template.changePasswordPopup.onRendered(function () {