Skip to content
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

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from
Open

Dexw 2439 shutdown service #1798

wants to merge 9 commits into from

Conversation

Axepuff
Copy link
Contributor

@Axepuff Axepuff commented Nov 25, 2019

No description provided.

@@ -54,6 +54,7 @@

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
Member

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
Member

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.

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

@@ -158,6 +160,7 @@
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();

@@ -755,6 +755,39 @@
return this._getModal(tsUtils.merge({}, DEFAULT_OPTIONS, options, { contentUrl, controller }));
}

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

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
Member

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