2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

Remove many usages of Discourse in templates as it's deprecated in new

releases of Ember
This commit is contained in:
Robin Ward 2014-09-11 16:30:47 -04:00
parent af6936cf72
commit 8559bbe508
11 changed files with 18 additions and 13 deletions

View file

@ -11,6 +11,8 @@ export default Ember.Controller.extend({
versionCheck: null,
problemsCheckMinutes: 1,
showVersionChecks: Discourse.computed.setting('version_checks'),
foundProblems: function() {
return(Discourse.User.currentProp('admin') && this.get('problems') && this.get('problems').length > 0);
}.property('problems'),