Этот коммит содержится в:
Joram Wilander
2016-05-30 09:59:53 -04:00
коммит произвёл Harrison Healey
родитель e4cb9141a4
Коммит 0dfac9875e
10 изменённых файлов: 210 добавлений и 46 удалений

Просмотреть файл

@@ -20,12 +20,12 @@ class ErrorStoreClass extends EventEmitter {
this.removeChangeListener = this.removeChangeListener.bind(this);
this.getLastError = this.getLastError.bind(this);
this.storeLastError = this.storeLastError.bind(this);
this.getIgnoreEmailPreview = this.getIgnoreEmailPreview.bind(this);
this.ignore_email_preview = false;
this.getIgnoreNotification = this.getIgnoreNotification.bind(this);
this.ignore_notification = false;
}
getIgnoreEmailPreview() {
return this.ignore_email_preview;
getIgnoreNotification() {
return this.ignore_notification;
}
emitChange() {
@@ -65,8 +65,8 @@ class ErrorStoreClass extends EventEmitter {
clearLastError() {
var lastError = this.getLastError();
// preview message can only be cleared by clearPreviewError
if (lastError && lastError.email_preview) {
// preview message can only be cleared by clearNotificationError
if (lastError && lastError.notification) {
return;
}
@@ -77,8 +77,8 @@ class ErrorStoreClass extends EventEmitter {
}
}
clearPreviewError() {
this.ignore_email_preview = true;
clearNotificationError() {
this.ignore_notification = true;
this.storeLastError('');
this.clearLastError();
}