mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Fixed FEATURE_FLAG_SHOPPINGLIST_MULTIPLE_LISTS clear shopping list confirm message handling (fixes #1315)
This commit is contained in:
@@ -2244,3 +2244,6 @@ msgstr ""
|
|||||||
|
|
||||||
msgid "Section"
|
msgid "Section"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Are you sure to empty the shopping list?"
|
||||||
|
msgstr ""
|
||||||
|
@@ -195,8 +195,14 @@ $(document).on('click', '#add-overdue-expired-products', function(e)
|
|||||||
|
|
||||||
$(document).on('click', '#clear-shopping-list', function(e)
|
$(document).on('click', '#clear-shopping-list', function(e)
|
||||||
{
|
{
|
||||||
|
var confirmMessage = __t('Are you sure to empty shopping list "%s"?', $("#selected-shopping-list option:selected").text());
|
||||||
|
if (!BoolVal(Grocy.FeatureFlags.GROCY_FEATURE_FLAG_SHOPPINGLIST_MULTIPLE_LISTS))
|
||||||
|
{
|
||||||
|
confirmMessage = __t('Are you sure to empty the shopping list?');
|
||||||
|
}
|
||||||
|
|
||||||
bootbox.confirm({
|
bootbox.confirm({
|
||||||
message: __t('Are you sure to empty shopping list "%s"?', $("#selected-shopping-list option:selected").text()),
|
message: confirmMessage,
|
||||||
closeButton: false,
|
closeButton: false,
|
||||||
buttons: {
|
buttons: {
|
||||||
confirm: {
|
confirm: {
|
||||||
|
Reference in New Issue
Block a user