summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-10-03 06:03:11 +0300
committerLauri Ojansivu <x@xet7.org>2019-10-03 06:03:11 +0300
commitf3b858ca212bdce571b56325eaa205feda60dca2 (patch)
tree9bf0f7057dbc7af33d16ca2aec6e3383917f6dda /models
parent5bc355f9a5e78df4c19764fdc4a343a46af4fdf8 (diff)
downloadwekan-f3b858ca212bdce571b56325eaa205feda60dca2.tar.gz
wekan-f3b858ca212bdce571b56325eaa205feda60dca2.tar.bz2
wekan-f3b858ca212bdce571b56325eaa205feda60dca2.zip
Revert drag handle changes.
Diffstat (limited to 'models')
-rw-r--r--models/users.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/models/users.js b/models/users.js
index 93fb409e..9147322c 100644
--- a/models/users.js
+++ b/models/users.js
@@ -109,13 +109,6 @@ Users.attachSchema(
type: String,
optional: true,
},
- 'profile.showDesktopDragHandles': {
- /**
- * does the user want to hide system messages?
- */
- type: Boolean,
- optional: true,
- },
'profile.hiddenSystemMessages': {
/**
* does the user want to hide system messages?
@@ -375,11 +368,6 @@ Users.helpers({
return _.contains(notifications, activityId);
},
- hasShowDesktopDragHandles() {
- const profile = this.profile || {};
- return profile.showDesktopDragHandles || false;
- },
-
hasHiddenSystemMessages() {
const profile = this.profile || {};
return profile.hiddenSystemMessages || false;
@@ -485,14 +473,6 @@ Users.mutations({
else this.addTag(tag);
},
- toggleDesktopHandles(value = false) {
- return {
- $set: {
- 'profile.showDesktopDragHandles': !value,
- },
- };
- },
-
toggleSystem(value = false) {
return {
$set: {
@@ -569,10 +549,6 @@ Meteor.methods({
Users.update(userId, { $set: { username } });
}
},
- toggleDesktopDragHandles() {
- const user = Meteor.user();
- user.toggleDesktopHandles(user.hasShowDesktopDragHandles());
- },
toggleSystemMessages() {
const user = Meteor.user();
user.toggleSystem(user.hasHiddenSystemMessages());