mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Don't show del popup on placeholder sprite
This commit is contained in:
@ -1902,6 +1902,10 @@ async function onClickExpressionDelete(event) {
|
|||||||
const expressionListItem = $(this).closest('.expression_list_item');
|
const expressionListItem = $(this).closest('.expression_list_item');
|
||||||
const expression = expressionListItem.data('expression');
|
const expression = expressionListItem.data('expression');
|
||||||
|
|
||||||
|
if (expressionListItem.attr('data-expression-type') === 'failure') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
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!`
|
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!`
|
||||||
+ '<br /><br />'
|
+ '<br /><br />'
|
||||||
+ t`Expression:` + ' <tt>' + expressionListItem.attr('data-filename') + '</tt>');
|
+ t`Expression:` + ' <tt>' + expressionListItem.attr('data-filename') + '</tt>');
|
||||||
|
Reference in New Issue
Block a user