From e7e79baa665eb246d6c0c0c2034fedea4cf301b6 Mon Sep 17 00:00:00 2001 From: Forms Dev Date: Tue, 12 Sep 2023 15:24:17 +0530 Subject: [PATCH] Copied with draft message changes --- .../js/components/open/forms/components/CopyContent.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/js/components/open/forms/components/CopyContent.vue b/resources/js/components/open/forms/components/CopyContent.vue index 109d62e13..0e3c449eb 100644 --- a/resources/js/components/open/forms/components/CopyContent.vue +++ b/resources/js/components/open/forms/components/CopyContent.vue @@ -54,7 +54,11 @@ export default { el.select() document.execCommand('copy') document.body.removeChild(el) - this.alertSuccess((this.isDraft) ? 'Copied! But other people won\'t be able to see the form since it\'s currently in draft mode' : 'Copied!') + if(this.isDraft){ + this.alertWarning('Copied! But other people won\'t be able to see the form since it\'s currently in draft mode') + } else { + this.alertSuccess('Copied!') + } } }