Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'pageDialog.isOpen': function (val) {
let dialog = this.$el
if (!val) {
this.resetDialog()
dialog.close()
} else {
if (!dialog.showModal) {
dialogPolyfill.registerDialog(dialog)
}
dialog.showModal()
if (!this.pageDialog.isNew) {
this.setEditDialog(this.activePage)
}
}
}
}
attachDialog: (el) => (state, actions) => {
dialog = el
dialogPolyfill.registerDialog(dialog)
}
}
openDialog () {
if (!this.$el.showModal) {
dialogPolyfill.registerDialog(this.$el)
}
this.owner = this.loggedUser ? this.loggedUser.login : ''
this.$el.showModal()
},
openDialog () {
if (!this.$el.showModal) {
dialogPolyfill.registerDialog(this.$el)
}
this.$el.showModal()
},
async openDialog () {
if (!this.$el.showModal) {
dialogPolyfill.registerDialog(this.$el)
}
this.owner = this.loggedUser ? this.loggedUser.login : ''
this.repo = await localforage.getItem('gh-repo-name') || this.projectTitle.replace(/[^a-zA-Z0-9-_]+/g, '-')
this.$el.showModal()
},