mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 19:35:41 +03:00
17 lines
435 B
JavaScript
17 lines
435 B
JavaScript
import { inject as service } from '@ember/service';
|
|
import Route from '@ember/routing/route';
|
|
import notifyError from 'nomad-ui/utils/notify-error';
|
|
|
|
export default class PluginRoute extends Route {
|
|
@service store;
|
|
@service system;
|
|
|
|
serialize(model) {
|
|
return { plugin_name: model.get('plainId') };
|
|
}
|
|
|
|
model(params) {
|
|
return this.store.findRecord('plugin', `csi/${params.plugin_name}`).catch(notifyError(this));
|
|
}
|
|
}
|