UI: Fix alignement of message (#6109)

This commit is contained in:
Pearl Dsilva 2022-03-14 22:25:02 +05:30 committed by GitHub
parent 1119a22d74
commit f84d63dd0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -2887,7 +2887,7 @@
"message.edit.traffic.type": "Please specify the traffic label you want associated with this traffic type.",
"message.egress.rules.allow": "Allow (traffic matching the egress rules added will be denied)",
"message.egress.rules.deny": "Deny (traffic matching the egress rules added will be allowed)",
"message.egress.rules.info.for.network": "The default egress policy of this network is %x. <br><br> Outgoing traffic matching the following rules will be %y",
"message.egress.rules.info.for.network": "The default egress policy of this network is %x. <br> Outgoing traffic matching the following rules will be %y",
"message.enable.account": "Please confirm that you want to enable this account.",
"message.enable.netsacler.provider.failed": "failed to enable Netscaler provider",
"message.enable.securitygroup.provider.failed": "failed to enable security group provider",

View File

@ -19,9 +19,13 @@
<div>
<div>
<a-alert
type="info"
v-html="$t('message.egress.rules.info.for.network').replace('%x', resource.egressdefaultpolicy ? '<b>' + $t('label.allow') + '</b>' :
'<b>' + $t('label.deny') + '</b>').replace('%y', resource.egressdefaultpolicy ? '<b>' + $t('message.denied') + '</b>' : '<b>' + $t('message.allowed') + '</b>')" />
type="info">
<template #message>
<div
v-html="$t('message.egress.rules.info.for.network').replace('%x', resource.egressdefaultpolicy ? '<b>' + $t('label.allow') + '</b>' :
'<b>' + $t('label.deny') + '</b>').replace('%y', resource.egressdefaultpolicy ? '<b>' + $t('message.denied') + '</b>' : '<b>' + $t('message.allowed') + '</b>.')" />
</template>
</a-alert>
<a-divider />
<div class="form" v-ctrl-enter="addRule">
<div class="form__item">