Converted <GhNavMenu> to glimmer component

no issue

- moves tag name and class into the component template for better visibility
- removed unused `isSettingsRoute` computed property
This commit is contained in:
Kevin Ansfield 2021-10-04 12:57:08 +01:00
parent 3013263498
commit 5966342223
2 changed files with 7 additions and 12 deletions

View File

@ -1 +1,3 @@
<GhNavMenu::Main @icon={{this.settings.settledIcon}} />
<nav class="gh-nav" ...attributes>
<GhNavMenu::Main @icon={{this.settings.settledIcon}} />
</nav>

View File

@ -1,13 +1,6 @@
import Component from '@ember/component';
import {match} from '@ember/object/computed';
import Component from '@glimmer/component';
import {inject as service} from '@ember/service';
export default Component.extend({
settings: service(),
router: service(),
tagName: 'nav',
classNames: ['gh-nav'],
isSettingsRoute: match('router.currentRouteName', /^settings/)
});
export default class GhNavMenuComponent extends Component {
@service settings;
}