[enh] Icons in alert config panel

This commit is contained in:
ljf 2021-08-26 19:48:49 +02:00
parent 911c5deeb0
commit 56df38d999
2 changed files with 4 additions and 3 deletions

View file

@ -1,6 +1,6 @@
<template>
<b-alert :variant="type" show>
<icon :iname="type" />
<icon :iname="icon" />
{{ label }}
</b-alert>
</template>
@ -12,7 +12,8 @@ export default {
props: {
id: { 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>

View file

@ -150,7 +150,7 @@ export function formatYunoHostArgument (arg) {
{
types: ['success', 'info', 'warning', 'danger'],
name: 'ReadOnlyAlertItem',
props: ['type', 'label:ask'],
props: ['type', 'label:ask', 'icon'],
readonly: true
},
{