mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
fixed SystemUpdate system value & fixed AppInstall check for root path
This commit is contained in:
parent
67dc725385
commit
c92dfd53d9
2 changed files with 4 additions and 4 deletions
|
@ -148,8 +148,8 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
beforeInstall () {
|
beforeInstall () {
|
||||||
const path = this.form.args.find(arg => arg.props.id === 'path').props.value
|
const path = this.form.args.find(arg => arg.props.id === 'path')
|
||||||
if (path === '/') {
|
if (path && path.props.value === '/') {
|
||||||
this.confirmDomain = this.form.args.find(arg => arg.props.id === 'domain').props.value
|
this.confirmDomain = this.form.args.find(arg => arg.props.id === 'domain').props.value
|
||||||
this.$refs['confirm-domain-root-modal'].show()
|
this.$refs['confirm-domain-root-modal'].show()
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -117,8 +117,8 @@ export default {
|
||||||
|
|
||||||
performUpdate () {
|
performUpdate () {
|
||||||
api.put('update').then(({ apps, system }) => {
|
api.put('update').then(({ apps, system }) => {
|
||||||
this.apps = apps.length !== 0 ? apps : null
|
this.apps = apps.length ? apps : null
|
||||||
this.system = system.length !== 0 ? apps : null
|
this.system = system.length ? system : null
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue