Skip to content

Commit

Permalink
RegistryInfo: Add properties inline and showEditable
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Nov 9, 2021
1 parent 4991949 commit ce7b819
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions src/components/RegistryInfo.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<template>
<div>
<div
:class="{
'registry-info-inline': inline,
}">
<div>
<registry-notation
:registry="registry"
Expand All @@ -18,7 +21,7 @@
<font-awesome-icon icon="link" />
</a>
<span
v-if="registry.isAuthorizedFor({
v-if="showEditable && registry.isAuthorizedFor({
type: 'mappings',
action: 'create',
user: user,
Expand Down Expand Up @@ -91,10 +94,25 @@ export default {
type: Boolean,
default: true,
},
showEditable: {
type: Boolean,
default: true,
},
inline: {
type: Boolean,
default: false,
},
},
}
</script>

<style lang="less" scoped>
@import "../style/main.less";
.registry-info-inline {
display: inline-block;
}
.registry-info-inline > div {
display: inline-block;
}
</style>

0 comments on commit ce7b819

Please sign in to comment.