fixed SystemUpdate system value & fixed AppInstall check for root path

This commit is contained in:
Axolotle 2020-10-08 14:09:02 +02:00
parent 67dc725385
commit c92dfd53d9
2 changed files with 4 additions and 4 deletions

View file

@ -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 {

View file

@ -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
}) })
}, },