mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 15:12:58 +03:00
16 lines
381 B
JavaScript
16 lines
381 B
JavaScript
|
import Route from 'ember-route';
|
||
|
|
||
|
Route.reopen({
|
||
|
actions: {
|
||
|
willTransition(transition) {
|
||
|
if (this.get('upgradeStatus.isRequired')) {
|
||
|
transition.abort();
|
||
|
this.get('upgradeStatus').requireUpgrade();
|
||
|
return false;
|
||
|
} else {
|
||
|
this._super(...arguments);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
});
|