Skip to content

Dexw 2439 shutdown service#1798

Open
Axepuff wants to merge 9 commits intodevfrom
dexw-2439-shutdown-service
Open

Dexw 2439 shutdown service#1798
Axepuff wants to merge 9 commits intodevfrom
dexw-2439-shutdown-service

Conversation

@Axepuff
Copy link
Copy Markdown
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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why?

Copy link
Copy Markdown

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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

what?

Copy link
Copy Markdown
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) {
Copy link
Copy Markdown

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

});
}


Copy link
Copy Markdown

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 => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

};

tick();

Copy link
Copy Markdown

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

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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
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
Copy Markdown
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