add back in comments

This commit is contained in:
Neil MacDougall 2021-05-06 11:23:59 +01:00
parent e75b037f1d
commit ea5234290d
1 changed files with 4 additions and 2 deletions

View File

@ -1,8 +1,8 @@
import { get, observer, set } from '@ember/object';
import Route from '@ember/routing/route';
import { cancel, next, schedule } from '@ember/runloop'; import { cancel, next, schedule } from '@ember/runloop';
import { inject as service } from '@ember/service'; import { inject as service } from '@ember/service';
import Route from '@ember/routing/route';
import C from 'ui/utils/constants'; import C from 'ui/utils/constants';
import { get, set, observer } from '@ember/object';
export default Route.extend({ export default Route.extend({
access: service(), access: service(),
@ -60,10 +60,12 @@ export default Route.extend({
cancel(get(this, 'hideTimer')); cancel(get(this, 'hideTimer'));
// console.log('Loading', id);
this.notifyAction('need-to-load'); this.notifyAction('need-to-load');
if ( !get(this, 'loadingShown') ) { if ( !get(this, 'loadingShown') ) {
set(this, 'loadingShown', true); set(this, 'loadingShown', true);
// console.log('Loading Show', id);
this.notifyLoading(true); this.notifyLoading(true);
schedule('afterRender', () => { schedule('afterRender', () => {