Update buefy modal

This commit is contained in:
alkl58
2024-11-06 16:41:38 +01:00
committed by Milos Stojanovic
parent d9273d569a
commit d1aa55f41f
4 changed files with 10 additions and 10 deletions

View File

@@ -322,7 +322,7 @@ export default {
this.$refs['ref-single-action-button-'+row.path].click() this.$refs['ref-single-action-button-'+row.path].click()
}, },
selectDir() { selectDir() {
this.$modal.open({ this.$buefy.modal.open({
parent: this, parent: this,
hasModalCard: true, hasModalCard: true,
component: Tree, component: Tree,
@@ -334,7 +334,7 @@ export default {
}) })
}, },
copy(event, item) { copy(event, item) {
this.$modal.open({ this.$buefy.modal.open({
parent: this, parent: this,
hasModalCard: true, hasModalCard: true,
component: Tree, component: Tree,
@@ -359,7 +359,7 @@ export default {
}) })
}, },
move(event, item) { move(event, item) {
this.$modal.open({ this.$buefy.modal.open({
parent: this, parent: this,
hasModalCard: true, hasModalCard: true,
component: Tree, component: Tree,
@@ -409,7 +409,7 @@ export default {
window.open(this.getDownloadLink(item.path), '_blank') window.open(this.getDownloadLink(item.path), '_blank')
}, },
search() { search() {
this.$modal.open({ this.$buefy.modal.open({
parent: this, parent: this,
hasModalCard: true, hasModalCard: true,
component: Search, component: Search,
@@ -428,7 +428,7 @@ export default {
if (this.isText(item.path)) { if (this.isText(item.path)) {
modal = Editor modal = Editor
} }
this.$modal.open({ this.$buefy.modal.open({
parent: this, parent: this,
props: { item: item }, props: { item: item },
hasModalCard: true, hasModalCard: true,
@@ -496,7 +496,7 @@ export default {
}) })
}, },
chmod(event, item) { chmod(event, item) {
this.$modal.open({ this.$buefy.modal.open({
parent: this, parent: this,
hasModalCard: true, hasModalCard: true,
component: Permissions, component: Permissions,

View File

@@ -106,7 +106,7 @@ export default {
return _.join(array, ', ') return _.join(array, ', ')
}, },
addUser() { addUser() {
this.$modal.open({ this.$buefy.modal.open({
parent: this, parent: this,
props: { user: { role: 'user'}, action: 'add' }, props: { user: { role: 'user'}, action: 'add' },
hasModalCard: true, hasModalCard: true,
@@ -123,7 +123,7 @@ export default {
this.handleError('Missing username') this.handleError('Missing username')
return return
} }
this.$modal.open({ this.$buefy.modal.open({
parent: this, parent: this,
props: { user: user, action: 'edit' }, props: { user: user, action: 'edit' },
hasModalCard: true, hasModalCard: true,

View File

@@ -73,7 +73,7 @@ export default {
this.$router.push('/login').catch(() => {}) this.$router.push('/login').catch(() => {})
}, },
profile() { profile() {
this.$modal.open({ this.$buefy.modal.open({
parent: this, parent: this,
hasModalCard: true, hasModalCard: true,
component: Profile, component: Profile,

View File

@@ -150,7 +150,7 @@ export default {
selectDir() { selectDir() {
this.formErrors.homedir = '' this.formErrors.homedir = ''
this.$modal.open({ this.$buefy.modal.open({
parent: this, parent: this,
hasModalCard: true, hasModalCard: true,
component: Tree, component: Tree,