import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';

export default class ConsoleSettingsVirtualRoute extends Route {
    @service('universe/menu-service') menuService;
    @service universe;

    queryParams = {
        view: {
            refreshModel: true,
        },
    };

    model({ slug }, transition) {
        const view = this.universe.getViewFromTransition(transition);
        return this.menuService.lookupMenuItem('console:settings', slug, view);
    }
}
