MCPcopy
hub / github.com/linuxfoundation/crowd.dev / error

Method error

frontend/src/shared/message/message.js:44–66  ·  view source on GitHub ↗
(payload, options = {})

Source from the content-addressed store, hash-verified

42 }
43
44 static error(payload, options = {}) {
45 let message = payload;
46
47 if (!message) {
48 message = i18n('errors.defaultErrorMessage');
49 }
50
51 ElNotification(
52 {
53
54 title: options.title ? options.title : message,
55 showClose: true,
56 message: options.title ? message : null,
57 customClass: 'error',
58 icon: errorIcon,
59 duration: 0,
60 dangerouslyUseHTMLString: true,
61 position: 'bottom-right',
62 offset: 24,
63 ...options,
64 },
65 );
66 }
67
68 static info(message, options = {}) {
69 ElNotification(

Callers 15

main.tsFile · 0.45
doGroupsioConnectFunction · 0.45
connectSocketFunction · 0.45
doInitFunction · 0.45
doCreateCustomAttributesFunction · 0.45
doBulkUpdateMembersTagsFunction · 0.45
fetchAndApplyMethod · 0.45
formatFunction · 0.45
doCreateFunction · 0.45
doUpdateFunction · 0.45
auth-axios.jsFile · 0.45

Calls 1

i18nFunction · 0.90

Tested by

no test coverage detected