From ff3fbef95087b46e307bd4d1df3ba01b8f140755 Mon Sep 17 00:00:00 2001 From: Westly Wright Date: Thu, 16 May 2019 10:39:19 -0700 Subject: [PATCH] Set isDefault true by default for private registry rancher/rancher#19325 --- lib/shared/addon/components/cru-private-registry/component.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/shared/addon/components/cru-private-registry/component.js b/lib/shared/addon/components/cru-private-registry/component.js index ee892073a..158facfa7 100644 --- a/lib/shared/addon/components/cru-private-registry/component.js +++ b/lib/shared/addon/components/cru-private-registry/component.js @@ -38,8 +38,8 @@ export default Component.extend({ }, actions: { - addRegistry() { - this.addRegistry(set(this, 'privateRegistry', this.newPrivateRegistry())); + addRegistry(isDefault = true) { + this.addRegistry(set(this, 'privateRegistry', this.newPrivateRegistry('privateRegistry', isDefault))); }, removeRegistry(registry) {