mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
formitems: add DisplayTextItem for simple text & fix ButtonItem style
This commit is contained in:
parent
1bacb6c1df
commit
8b6db431d6
4 changed files with 24 additions and 2 deletions
|
@ -4,6 +4,7 @@
|
||||||
:variant="type"
|
:variant="type"
|
||||||
@click="$emit('action', $event)"
|
@click="$emit('action', $event)"
|
||||||
:disabled="!enabled"
|
:disabled="!enabled"
|
||||||
|
class="d-block mb-3"
|
||||||
>
|
>
|
||||||
<icon :iname="icon_" class="mr-2" />
|
<icon :iname="icon_" class="mr-2" />
|
||||||
<span v-html="label" />
|
<span v-html="label" />
|
||||||
|
|
16
app/src/components/globals/formItems/DisplayTextItem.vue
Normal file
16
app/src/components/globals/formItems/DisplayTextItem.vue
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<p v-text="label" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'DisplayTextItem',
|
||||||
|
|
||||||
|
props: {
|
||||||
|
id: { type: String, default: null },
|
||||||
|
label: { type: String, default: null }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
|
@ -12,4 +12,3 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -225,11 +225,17 @@ export function formatYunoHostArgument (arg) {
|
||||||
renderSelf: true
|
renderSelf: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
types: ['markdown', 'display_text'],
|
types: ['markdown'],
|
||||||
name: 'MarkdownItem',
|
name: 'MarkdownItem',
|
||||||
props: ['label:ask'],
|
props: ['label:ask'],
|
||||||
renderSelf: true
|
renderSelf: true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
types: ['display_text'],
|
||||||
|
name: 'DisplayTextItem',
|
||||||
|
props: ['label:ask'],
|
||||||
|
renderSelf: true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
types: ['button'],
|
types: ['button'],
|
||||||
name: 'ButtonItem',
|
name: 'ButtonItem',
|
||||||
|
|
Loading…
Add table
Reference in a new issue