mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
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:
parent
3013263498
commit
5966342223
2 changed files with 7 additions and 12 deletions
|
@ -1 +1,3 @@
|
||||||
<GhNavMenu::Main @icon={{this.settings.settledIcon}} />
|
<nav class="gh-nav" ...attributes>
|
||||||
|
<GhNavMenu::Main @icon={{this.settings.settledIcon}} />
|
||||||
|
</nav>
|
|
@ -1,13 +1,6 @@
|
||||||
import Component from '@ember/component';
|
import Component from '@glimmer/component';
|
||||||
import {match} from '@ember/object/computed';
|
|
||||||
import {inject as service} from '@ember/service';
|
import {inject as service} from '@ember/service';
|
||||||
|
|
||||||
export default Component.extend({
|
export default class GhNavMenuComponent extends Component {
|
||||||
settings: service(),
|
@service settings;
|
||||||
router: service(),
|
}
|
||||||
|
|
||||||
tagName: 'nav',
|
|
||||||
classNames: ['gh-nav'],
|
|
||||||
|
|
||||||
isSettingsRoute: match('router.currentRouteName', /^settings/)
|
|
||||||
});
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue