Commit 05c44445 authored by Jörg Richter's avatar Jörg Richter

Adapt to dmx-api (more `Type` getters)

parent c086911f
Pipeline #11838 passed with stages
in 11 minutes and 47 seconds
......@@ -9,7 +9,7 @@
</div>
<div class="field">
<div class="field-label">Released</div>
Dec 8, 2020
Dec 10, 2020
</div>
<div class="field">
<div class="field-label">License</div>
......
<template>
<el-select v-model="type.dataTypeUri">
<el-option-group label="Simple">
<el-option :label="dataTypes['dmx.core.text'].value" :value="dataTypes['dmx.core.text'].uri">
<el-option :label="dataTypes['dmx.core.text'].value" :value="dataTypes['dmx.core.text'].uri">
</el-option>
<el-option :label="dataTypes['dmx.core.number'].value" :value="dataTypes['dmx.core.number'].uri">
<el-option :label="dataTypes['dmx.core.number'].value" :value="dataTypes['dmx.core.number'].uri">
</el-option>
<el-option :label="dataTypes['dmx.core.boolean'].value" :value="dataTypes['dmx.core.boolean'].uri">
<el-option :label="dataTypes['dmx.core.boolean'].value" :value="dataTypes['dmx.core.boolean'].uri">
</el-option>
<el-option :label="dataTypes['dmx.core.html'].value" :value="dataTypes['dmx.core.html'].uri">
<el-option :label="dataTypes['dmx.core.html'].value" :value="dataTypes['dmx.core.html'].uri">
</el-option>
</el-option-group>
<el-option-group label="Composite">
<template v-if="isTopicType">
<el-option :label="dataTypes['dmx.core.value'].value" :value="dataTypes['dmx.core.value'].uri">
<el-option :label="dataTypes['dmx.core.value'].value" :value="dataTypes['dmx.core.value'].uri">
</el-option>
<el-option :label="dataTypes['dmx.core.entity'].value" :value="dataTypes['dmx.core.entity'].uri">
<el-option :label="dataTypes['dmx.core.entity'].value" :value="dataTypes['dmx.core.entity'].uri">
</el-option>
</template>
<el-option :label="dataTypes['dmx.core.composite'].value" :value="dataTypes['dmx.core.composite'].uri" v-else>
<el-option v-else :label="dataTypes['dmx.core.composite'].value" :value="dataTypes['dmx.core.composite'].uri">
</el-option>
</el-option-group>
</el-select>
......@@ -38,7 +38,7 @@ export default {
computed: {
isTopicType () {
return this.type.isTopicType()
return this.type.isTopicType
},
dataTypes () {
......
......@@ -8,7 +8,7 @@ import onHttpError from './error-handler'
import extraElementUI from './element-ui'
import './websocket'
console.log('[DMX] 2020/12/08')
console.log('[DMX] 2020/12/10')
// 1) Init dm5 library
// The dm5 library must be inited *before* the dm5-webclient component is instantiated.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment