fix: opt in to import.meta.* properties (#364)
This commit is contained in:
@@ -37,7 +37,7 @@ const props = defineProps({
|
||||
})
|
||||
|
||||
const copyToClipboard = () => {
|
||||
if (process.server) return
|
||||
if (import.meta.server) return
|
||||
copy(props.content)
|
||||
if(props.isDraft){
|
||||
useAlert().warning('Copied! But other people won\'t be able to see the form since it\'s currently in draft mode')
|
||||
|
||||
@@ -145,7 +145,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
parentPage() {
|
||||
if (process.server) {
|
||||
if (import.meta.server) {
|
||||
return null
|
||||
}
|
||||
return window
|
||||
@@ -261,7 +261,7 @@ export default {
|
||||
this.properties = columns
|
||||
},
|
||||
onChangeDisplayColumns() {
|
||||
if (!process.client) return
|
||||
if (!import.meta.client) return
|
||||
window.localStorage.setItem('display-columns-formid-' + this.form.id, JSON.stringify(this.displayColumns))
|
||||
this.properties = clonedeep(this.form.properties).concat(this.removed_properties).filter((field) => {
|
||||
return this.displayColumns[field.id] === true
|
||||
|
||||
@@ -59,7 +59,7 @@ const preFillUrl = computed(() => {
|
||||
})
|
||||
|
||||
const copyToClipboard = () => {
|
||||
if (process.server) return
|
||||
if (import.meta.server) return
|
||||
copy(preFillUrl.value)
|
||||
useAlert().success('Copied!')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user