Copied with draft message changes (#199)
Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
parent
d75975bdec
commit
844aa4e313
|
@ -54,7 +54,11 @@ export default {
|
||||||
el.select()
|
el.select()
|
||||||
document.execCommand('copy')
|
document.execCommand('copy')
|
||||||
document.body.removeChild(el)
|
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!')
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue