DEV: prevents deprecation of overriding computed property (#8030)

DEV: prevents deprecation of overriding computed property (#8030)

Ember.js - Deprecations

diff --git a/app/assets/javascripts/discourse/models/nav-item.js.es6 b/app/assets/javascripts/discourse/models/nav-item.js.es6
index 799039d..8ae207a 100644
--- a/app/assets/javascripts/discourse/models/nav-item.js.es6
+++ b/app/assets/javascripts/discourse/models/nav-item.js.es6
@@ -101,8 +101,19 @@ const NavItem = Discourse.Model.extend({
 });
 
 const ExtraNavItem = NavItem.extend({
-  @computed("href")
-  href: href => href,
+  href: computed("href", {
+    get() {
+      if (this._href) {
+        return this._href;
+      }
+
+      return this.href;
+    },
+
+    set(key, value) {
+      return (this._href = value);
+    }
+  }),
 
   customFilter: null
 });

GitHub sha: 74931eed