mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 02:51:57 +02:00
Fix material icon in hydrate form message (#27511)
GitOrigin-RevId: 5775f89ee625a7346ccbce8c1103dfa650ff94e3
This commit is contained in:
@@ -4,7 +4,7 @@ import { canSkipCaptcha, validateCaptchaV2 } from './captcha'
|
||||
import inputValidator from './input-validator'
|
||||
import { disableElement, enableElement } from '../utils/disableElement'
|
||||
import { isBootstrap5 } from '@/features/utils/bootstrap-5'
|
||||
import { materialIcon } from '@/features/utils/material-icon'
|
||||
import { materialIcon as createMaterialIcon } from '@/features/utils/material-icon'
|
||||
|
||||
// Form helper(s) to handle:
|
||||
// - Attaching to the relevant form elements
|
||||
@@ -165,7 +165,7 @@ function createNotificationFromMessageBS5(message) {
|
||||
if (materialIcon) {
|
||||
const iconEl = document.createElement('div')
|
||||
iconEl.className = 'notification-icon'
|
||||
const iconSpan = materialIcon(materialIcon)
|
||||
const iconSpan = createMaterialIcon(materialIcon)
|
||||
iconEl.append(iconSpan)
|
||||
messageEl.append(iconEl)
|
||||
}
|
||||
@@ -313,7 +313,7 @@ function showMessagesNewStyle(formEl, messageBag) {
|
||||
}
|
||||
|
||||
// create the left icon
|
||||
const icon = materialIcon(
|
||||
const icon = createMaterialIcon(
|
||||
message.type === 'error' ? 'error' : 'check_circle'
|
||||
)
|
||||
const messageIcon = document.createElement('div')
|
||||
|
||||
Reference in New Issue
Block a user