Skip to content
Snippets Groups Projects

New: Functionality for adding vocabulary terms to application profiles

Merged Benedikt Heinrichs requested to merge Topic/1558-vocabAddition into Product/1464-uiFrame
8 files
+ 143
195
Compare changes
  • Side-by-side
  • Inline
Files
8
<template>
<ul>
<li
v-for="vocabularyTerm in vocabularyTerms"
:key="vocabularyTerm.property"
>
{{ vocabularyTerm.property }}
<li v-for="vocabularyTerm in vocabularyTerms" :key="vocabularyTerm.uri">
{{ vocabularyTerm.prefix !== null ? vocabularyTerm.prefix + ":" : ""
}}{{ vocabularyTerm.property }}
<b-button @click="addVocabularyTerm(vocabularyTerm)">Add</b-button>
</li>
</ul>
</template>
@@ -22,6 +21,11 @@ export default Vue.extend({
type: Array as PropType<VocabularyTerm[]>,
},
},
methods: {
addVocabularyTerm(vocabularyTerm: VocabularyTerm) {
this.$emit("addVocabularyTerm", vocabularyTerm);
},
},
});
</script>
Loading