Warning message for title of web template has been added (#490)

* Warning message for title of web template has been added

* edit text

* edit text

Co-authored-by: Vadim Stepanov <vadimkerr@gmail.com>
This commit is contained in:
Yulia Shanyrova 2022-09-06 13:57:21 +02:00 committed by GitHub
parent afe13550da
commit 81cd5c1722
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View file

@ -57,3 +57,7 @@
.autoresolve-label {
margin-bottom: 0 !important;
}
.web-title-message {
margin-top: 8px;
}

View file

@ -240,6 +240,15 @@ const AlertTemplatesForm = (props: AlertTemplatesFormProps) => {
<Text type="secondary">
Press <Text keyboard>Ctrl</Text>+<Text keyboard>Space</Text> to get suggestions
</Text>
{activeGroup === 'web' && activeTemplate.name == 'web_title_template' && (
<div className={cx('web-title-message')}>
<Text type="secondary" size="small">
Please note that after changing the web title template new alert groups will be searchable by
new title. Alert groups created before the template was changed will be still searchable by
old title only.
</Text>
</div>
)}
</div>
</div>
))}