Skip to content

Commit

Permalink
don’t show when it’s published
Browse files Browse the repository at this point in the history
  • Loading branch information
edalzell committed Dec 15, 2020
1 parent 2a1b041 commit 601fa94
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion resources/js/components/fieldtypes/Draft.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div>
<div v-if="!published">
<button
type="button"
class="btn"
Expand All @@ -15,12 +15,20 @@
export default {
mixins: [Fieldtype],
inject: [
'storeName'
],
data() {
return {
//
};
},
computed: {
published() {
return this.$store.state.publish[this.storeName].values.published;
}
},
methods: {
copyToClipboard() {
navigator.clipboard.writeText('https://transformstudios.com');
Expand Down

0 comments on commit 601fa94

Please sign in to comment.