mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
undo interfaces change
This commit is contained in:
committed by
Aiden McClelland
parent
f3190cc68f
commit
1eeb5e03ea
@@ -29,11 +29,11 @@ export class AppInterfacesPage {
|
|||||||
const pkgId = this.route.snapshot.paramMap.get('pkgId')
|
const pkgId = this.route.snapshot.paramMap.get('pkgId')
|
||||||
const pkg = this.patch.data['package-data'][pkgId]
|
const pkg = this.patch.data['package-data'][pkgId]
|
||||||
const interfaces = pkg.manifest.interfaces
|
const interfaces = pkg.manifest.interfaces
|
||||||
const addressesMap = pkg.installed['interface-addresses'] || { }
|
const addressesMap = pkg.installed['interface-addresses']
|
||||||
const ui = interfaces['ui']
|
const ui = interfaces['ui']
|
||||||
|
|
||||||
if (ui) {
|
if (ui) {
|
||||||
const uiAddresses = addressesMap['ui'] || { }
|
const uiAddresses = addressesMap['ui']
|
||||||
this.ui = {
|
this.ui = {
|
||||||
def: ui,
|
def: ui,
|
||||||
addresses: {
|
addresses: {
|
||||||
@@ -50,8 +50,8 @@ export class AppInterfacesPage {
|
|||||||
return {
|
return {
|
||||||
def: interfaces[key],
|
def: interfaces[key],
|
||||||
addresses: {
|
addresses: {
|
||||||
'lan-address': addresses && addresses['lan-address'] ? 'https://' + addresses['lan-address'] : null,
|
'lan-address': addresses['lan-address'] ? 'https://' + addresses['lan-address'] : null,
|
||||||
'tor-address': addresses && addresses['tor-address'] ? 'http://' + addresses['tor-address'] : null,
|
'tor-address': addresses['tor-address'] ? 'http://' + addresses['tor-address'] : null,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user