-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dexw 2439 shutdown service #1798
base: dev
Are you sure you want to change the base?
Conversation
@@ -54,6 +54,7 @@ | |||
|
|||
state.signals.changeRouterStateStart.on(this.closeModals, this); | |||
user.logoutSignal.on(this.closeModals, this); | |||
window._mm = this; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
это из моей ветки доехало. там wip
class ShutdownLastCtrl extends Base { | ||
|
||
confirm() { | ||
window.history.go(0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
location.reload();
* @param {[{ start: string, end: ?string, action: string }]} timers | ||
* @private | ||
*/ | ||
_handleDates(timers) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Так все-таки dates или timers?
sessionStorage.setItem(timer.action, 'true'); | ||
modalManager[timer.action](); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
лишние переносы
}); | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тут тоже
_handleTimers(timers) { | ||
const now = Date.now(); | ||
|
||
timers.forEach(timer => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А что будет если configService еще не прогрузил конфиг из сети?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Такого не может быть
}; | ||
|
||
tick(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Лишний перенос.
src/modules/app/initialize/AppRun.js
Outdated
@@ -158,6 +160,7 @@ | |||
this._initializeLogin(); | |||
this._initializeOutLinks(); | |||
this._openMigrationModal(); | |||
this._setShutdownService(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
нам точно нужен метод? можно же сразу shutdownService.run();
@@ -755,6 +755,39 @@ | |||
return this._getModal(tsUtils.merge({}, DEFAULT_OPTIONS, options, { contentUrl, controller })); | |||
} | |||
|
|||
showShutdownFirstModal() { | |||
localStorage.setItem('shutdownFirstShown', true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А зачем локал сторадж?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это Виктор исправит в своей ветке
} | ||
|
||
showShutdownSecondModal() { | ||
localStorage.setItem('shutdownSecondShown', true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Аналогично
No description provided.