Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
core(send-mail): button text depends on config
Browse files Browse the repository at this point in the history
  • Loading branch information
andi34 committed Jul 7, 2022
1 parent 3c3abb0 commit 9f814ae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/js/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,11 @@ const photoBooth = (function () {

setTimeout(function () {
submitButton.show();
submitButton.html('<span>' + photoboothTools.getTranslation('send') + '</span>');
if (config.mail.send_all_later) {
submitButton.html('<span>' + photoboothTools.getTranslation('add') + '</span>');
} else {
submitButton.html('<span>' + photoboothTools.getTranslation('send') + '</span>');
}
}, 5000);
});

Expand Down

0 comments on commit 9f814ae

Please sign in to comment.