From 9eabff8a601ed51878b791efca0a306b39177b6e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Se=CC=81rgio=20Ramos?=
Date: Fri, 2 Mar 2018 14:21:28 +0000
Subject: [PATCH] feat(instances): link user-scripts to metadata
---
.../__snapshots__/user-script.spec.js.snap | 40 +++++++++++++++++++
.../containers/create-instance/user-script.js | 9 ++++-
.../src/containers/instances/user-script.js | 9 ++++-
3 files changed, 56 insertions(+), 2 deletions(-)
diff --git a/packages/my-joy-instances/src/containers/create-instance/__tests__/__snapshots__/user-script.spec.js.snap b/packages/my-joy-instances/src/containers/create-instance/__tests__/__snapshots__/user-script.spec.js.snap
index d3843a44..a1e56edf 100644
--- a/packages/my-joy-instances/src/containers/create-instance/__tests__/__snapshots__/user-script.spec.js.snap
+++ b/packages/my-joy-instances/src/containers/create-instance/__tests__/__snapshots__/user-script.spec.js.snap
@@ -356,6 +356,14 @@ Array [
className="c3"
>
User script can be used to inject a custom boot script.
+
+
+ Read the docs
+
@@ -826,6 +834,14 @@ Array [
className="c3"
>
User script can be used to inject a custom boot script.
+
+
+ Read the docs
+
@@ -1296,6 +1312,14 @@ Array [
className="c3"
>
User script can be used to inject a custom boot script.
+
+
+ Read the docs
+
@@ -1679,6 +1703,14 @@ Array [
className="c3"
>
User script can be used to inject a custom boot script.
+
+
+ Read the docs
+
@@ -2062,6 +2094,14 @@ Array [
className="c3"
>
User script can be used to inject a custom boot script.
+
+
+ Read the docs
+
diff --git a/packages/my-joy-instances/src/containers/create-instance/user-script.js b/packages/my-joy-instances/src/containers/create-instance/user-script.js
index 3610c390..13a9c4fd 100644
--- a/packages/my-joy-instances/src/containers/create-instance/user-script.js
+++ b/packages/my-joy-instances/src/containers/create-instance/user-script.js
@@ -44,7 +44,14 @@ export const UserScript = ({
{expanded ? (
- User script can be used to inject a custom boot script.
+ User script can be used to inject a custom boot script.{' '}
+
+ Read the docs
+
{formOpen ? (
(
- User script can be used to inject a custom boot script.
+ User script can be used to inject a custom boot script.{' '}
+
+ Read the docs
+
{loading ? : null}