67P/hyperchannel

View on GitHub
app/routes/configure-sockethub.js

Summary

Maintainability
A
0 mins
Test Coverage
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';
import config from 'hyperchannel/config/environment';

export default class ConfigureSockethubRoute extends Route {

  @service sockethub;

  model () {
    return { config };
  }

  redirect () {
    if (this.sockethub.client) {
      this.transitionTo('index');
    }
  }

}