mirror of https://github.com/rancher/ui.git
22 lines
546 B
JavaScript
22 lines
546 B
JavaScript
import DockerCredential from './dockercredential';
|
|
import { reference } from '@rancher/ember-api-store/utils/denormalize';
|
|
import { inject as service } from '@ember/service';
|
|
|
|
export default DockerCredential.extend({
|
|
clusterStore: service(),
|
|
|
|
canClone: true,
|
|
|
|
namespace: reference('namespaceId', 'namespace', 'clusterStore'),
|
|
actions: {
|
|
clone() {
|
|
this.router.transitionTo('authenticated.project.registries.new', {
|
|
queryParams: {
|
|
id: this.id,
|
|
type: this.type
|
|
}
|
|
});
|
|
}
|
|
},
|
|
});
|