Remove tooltip for delete event

Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
soupette 2020-09-01 08:40:25 +02:00 committed by Pierre Noël
parent 0528ab9c19
commit 1fcbb15143
3 changed files with 3 additions and 7 deletions

View File

@ -57,7 +57,7 @@ const EventInput = ({ onChange, name: inputName, value: inputValue }) => {
<tr> <tr>
<td /> <td />
{headersName.map(header => { {headersName.map(header => {
if (header.includes('app.utils')) { if (header === 'app.utils.publish' || header === 'app.utils.unpublish') {
return ( return (
<FormattedMessage id="Settings.webhooks.event.publish-tooltip" key={header}> <FormattedMessage id="Settings.webhooks.event.publish-tooltip" key={header}>
{msg => ( {msg => (

View File

@ -258,9 +258,7 @@ exports[`<EventInput /> should match the snapshot 1`] = `
Update Update
</span> </span>
</td> </td>
<td <td>
title="This event only exists for contents with Draft/Publish system enabled"
>
<span> <span>
Delete Delete
</span> </span>

View File

@ -292,9 +292,7 @@ exports[`<Inputs /> should match the snapshot if type is events 1`] = `
Update Update
</span> </span>
</td> </td>
<td <td>
title="This event only exists for contents with Draft/Publish system enabled"
>
<span> <span>
Delete Delete
</span> </span>