mirror of https://github.com/rancher/ui.git
15 lines
346 B
JavaScript
15 lines
346 B
JavaScript
import Resource from '@rancher/ember-api-store/models/resource';
|
|
import { inject as service } from '@ember/service';
|
|
|
|
export default Resource.extend({
|
|
router: service(),
|
|
|
|
canClone: true,
|
|
|
|
actions: {
|
|
clone() {
|
|
this.router.transitionTo('authenticated.project.registries.new', null, { queryParams: { id: this.id } } );
|
|
}
|
|
}
|
|
});
|