| 1902 | 1902 | const expressionListItem = $(this).closest('.expression_list_item'); |
| 1903 | 1903 | const expression = expressionListItem.data('expression'); |
| 1904 | 1904 | |
| 1905 | + if (expressionListItem.attr('data-expression-type') === 'failure') { |
| 1906 | + return; |
| 1907 | + } |
| 1908 | + |
| 1905 | 1909 | const confirmation = await Popup.show.confirm(t`Delete Expression`, t`Are you sure you want to delete this expression? Once deleted, it\'s gone forever!` |
| 1906 | 1910 | + '<br /><br />' |
| 1907 | 1911 | + t`Expression:` + ' <tt>' + expressionListItem.attr('data-filename') + '</tt>'); |