Skip to content

Conversation

Axepuff
Copy link
Contributor

@Axepuff Axepuff commented Nov 25, 2019

No description provided.


state.signals.changeRouterStateStart.on(this.closeModals, this);
user.logoutSignal.on(this.closeModals, this);
window._mm = this;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what?

Copy link
Contributor

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) {

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]();
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

лишние переносы

});
}


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 => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А что будет если configService еще не прогрузил конфиг из сети?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Такого не может быть

};

tick();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Лишний перенос.

this._initializeLogin();
this._initializeOutLinks();
this._openMigrationModal();
this._setShutdownService();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

нам точно нужен метод? можно же сразу shutdownService.run();

}

showShutdownFirstModal() {
localStorage.setItem('shutdownFirstShown', true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А зачем локал сторадж?

Copy link
Contributor Author

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Аналогично

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants