mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[enh] Icons in alert config panel
This commit is contained in:
parent
911c5deeb0
commit
56df38d999
2 changed files with 4 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<b-alert :variant="type" show>
|
<b-alert :variant="type" show>
|
||||||
<icon :iname="type" />
|
<icon :iname="icon" />
|
||||||
{{ label }}
|
{{ label }}
|
||||||
</b-alert>
|
</b-alert>
|
||||||
</template>
|
</template>
|
||||||
|
@ -12,7 +12,8 @@ export default {
|
||||||
props: {
|
props: {
|
||||||
id: { type: String, default: null },
|
id: { type: String, default: null },
|
||||||
label: { type: String, default: null },
|
label: { type: String, default: null },
|
||||||
type: { type: String, default: null }
|
type: { type: String, default: null },
|
||||||
|
icon: { type: String, default: null }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -150,7 +150,7 @@ export function formatYunoHostArgument (arg) {
|
||||||
{
|
{
|
||||||
types: ['success', 'info', 'warning', 'danger'],
|
types: ['success', 'info', 'warning', 'danger'],
|
||||||
name: 'ReadOnlyAlertItem',
|
name: 'ReadOnlyAlertItem',
|
||||||
props: ['type', 'label:ask'],
|
props: ['type', 'label:ask', 'icon'],
|
||||||
readonly: true
|
readonly: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue