Add license expiry messages (#3153)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
e4cb9141a4
Коммит
0dfac9875e
@@ -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();
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user