mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03: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
@ -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 {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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user