Reworked workspaces store

This commit is contained in:
Julien Nahum
2023-12-19 18:57:31 +01:00
parent aac4d1da04
commit 5640f43b9d
17 changed files with 210 additions and 282 deletions

View File

@@ -129,6 +129,12 @@ export default {
submitButtonClass: { type: String, default: '' }
},
setup () {
return {
isIframe: useIsIframe()
}
},
data () {
return {
loading: false,
@@ -143,10 +149,8 @@ export default {
},
computed: {
isIframe () {
return window.location !== window.parent.location || window.frameElement
},
isEmbedPopup () {
if (process.server) return false
return window.location.href.includes('popup=true')
},
theme () {