minor on nodeinfo, needs to be improved
This commit is contained in:
@@ -70,6 +70,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { mapActions, mapState } from 'vuex'
|
import { mapActions, mapState } from 'vuex'
|
||||||
|
import get from 'lodash/get'
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import { mdiDeleteForever, mdiPlus, mdiChevronLeft, mdiChevronRight } from '@mdi/js'
|
import { mdiDeleteForever, mdiPlus, mdiChevronLeft, mdiChevronRight } from '@mdi/js'
|
||||||
|
|
||||||
@@ -130,8 +131,8 @@ export default {
|
|||||||
key: 'trusted_instances',
|
key: 'trusted_instances',
|
||||||
value: this.settings.trusted_instances.concat({
|
value: this.settings.trusted_instances.concat({
|
||||||
url: this.instance_url,
|
url: this.instance_url,
|
||||||
name: instance.data.metadata.nodeName,
|
name: get(instance, 'data.metadata.nodeName', ''),
|
||||||
label: instance.data.metadata.nodeLabel
|
label: get(instance, 'data.metadata.nodeLabel', '')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
this.$refs.form.reset()
|
this.$refs.form.reset()
|
||||||
|
|||||||
Reference in New Issue
Block a user