From 40cd87f25352993259208d487af75e008a09b2c4 Mon Sep 17 00:00:00 2001 From: Alex Corey Date: Wed, 3 Jun 2020 14:38:05 -0400 Subject: [PATCH] Adds message for unsynced projects for copy to clipboard button --- .../ClipboardCopyButton.jsx | 10 ++++++- .../ClipboardCopyButton.test.jsx | 13 ++++++++ .../Project/ProjectList/ProjectListItem.jsx | 23 +++++++++----- .../ProjectList/ProjectListItem.test.jsx | 30 +++++++++++++++++++ 4 files changed, 68 insertions(+), 8 deletions(-) diff --git a/awx/ui_next/src/components/ClipboardCopyButton/ClipboardCopyButton.jsx b/awx/ui_next/src/components/ClipboardCopyButton/ClipboardCopyButton.jsx index 8fcac00468..30367bff79 100644 --- a/awx/ui_next/src/components/ClipboardCopyButton/ClipboardCopyButton.jsx +++ b/awx/ui_next/src/components/ClipboardCopyButton/ClipboardCopyButton.jsx @@ -40,7 +40,13 @@ class ClipboardCopyButton extends React.Component { }; render() { - const { clickTip, entryDelay, exitDelay, hoverTip } = this.props; + const { + clickTip, + entryDelay, + exitDelay, + hoverTip, + isDisabled, + } = this.props; const { copied } = this.state; return ( @@ -51,6 +57,7 @@ class ClipboardCopyButton extends React.Component { content={copied ? clickTip : hoverTip} >