|
@@ -68,10 +68,13 @@ export default {
|
68
|
68
|
* Sets the local user display name and saves it to local storage
|
69
|
69
|
*
|
70
|
70
|
* @param {string} newDisplayName unescaped display name for the local user
|
|
71
|
+ * @param {boolean} disableLocalStore disables local store the display name
|
71
|
72
|
*/
|
72
|
|
- setDisplayName (newDisplayName) {
|
|
73
|
+ setDisplayName (newDisplayName, disableLocalStore) {
|
73
|
74
|
displayName = newDisplayName;
|
74
|
|
- window.localStorage.displayname = UIUtil.escapeHtml(displayName);
|
|
75
|
+
|
|
76
|
+ if (!disableLocalStore)
|
|
77
|
+ window.localStorage.displayname = UIUtil.escapeHtml(displayName);
|
75
|
78
|
},
|
76
|
79
|
|
77
|
80
|
/**
|
|
@@ -85,10 +88,13 @@ export default {
|
85
|
88
|
/**
|
86
|
89
|
* Sets new email for local user and saves it to the local storage.
|
87
|
90
|
* @param {string} newEmail new email for the local user
|
|
91
|
+ * @param {boolean} disableLocalStore disables local store the email
|
88
|
92
|
*/
|
89
|
|
- setEmail: function (newEmail) {
|
|
93
|
+ setEmail: function (newEmail, disableLocalStore) {
|
90
|
94
|
email = newEmail;
|
91
|
|
- window.localStorage.email = UIUtil.escapeHtml(newEmail);
|
|
95
|
+
|
|
96
|
+ if (!disableLocalStore)
|
|
97
|
+ window.localStorage.email = UIUtil.escapeHtml(newEmail);
|
92
|
98
|
},
|
93
|
99
|
|
94
|
100
|
/**
|