Skip to content

Commit

Permalink
MappingEditor: Use RegistryInfo for name of registry (#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Nov 9, 2021
1 parent ce7b819 commit 0ede2f7
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/components/MappingEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
<div
v-if="canSaveCurrentMapping"
class="mappingEditor-mappingNotSaved fontSize-small fontWeight-heavy">
{{ $jskos.prefLabel($store.getters.getCurrentRegistry) }}: {{ $t("mappingEditor.notSaved") }}
<registry-info
:registry="$store.getters.getCurrentRegistry"
:show-details="false"
:show-capabilities="false"
:show-editable="false"
:inline="true" />: {{ $t("mappingEditor.notSaved") }}
</div>
<div class="mappingEditorToolbar">
<div
Expand Down Expand Up @@ -231,6 +236,7 @@ import MappingTypeSelection from "./MappingTypeSelection.vue"
import _ from "lodash"
import ComponentSettings from "./ComponentSettings.vue"
import MappingDetail from "./MappingDetail.vue"
import RegistryInfo from "./RegistryInfo.vue"
// Import mixins
import auth from "../mixins/auth.js"
Expand All @@ -244,7 +250,7 @@ import computed from "../mixins/computed.js"
*/
export default {
name: "MappingEditor",
components: { ItemName, MappingTypeSelection, ComponentSettings, MappingDetail },
components: { ItemName, MappingTypeSelection, ComponentSettings, MappingDetail, RegistryInfo },
mixins: [auth, objects, dragandrop, hotkeys, computed],
computed: {
mapping() {
Expand Down Expand Up @@ -764,8 +770,8 @@ export default {
.mappingEditor-mappingNotSaved {
position: absolute;
bottom: -4px;
left: 1px;
bottom: -1px;
left: 0px;
color: @color-button-delete;
z-index: @zIndex-2;
}
Expand Down

0 comments on commit 0ede2f7

Please sign in to comment.