WIP timesheet timers: dont ask again to start working time, if user denied it in this session or last 18 hours

This commit is contained in:
ralf
2022-10-14 14:25:58 +02:00
parent 68ff204527
commit bc9e252da9
2 changed files with 21 additions and 1 deletions

View File

@ -518,13 +518,17 @@ egw.extend('timer', egw.MODULE_GLOBAL, function()
if (pref === 'no') return;
// overall timer not running, ask to start
if (overall && !overall.start)
if (overall && !overall.start && !state.overall.dont_ask)
{
Et2Dialog.show_dialog((button) => {
if (button === Et2Dialog.YES_BUTTON)
{
timerAction('overall-start');
}
else
{
egw.request('EGroupware\\Timesheet\\Events::ajax_dontAskAgainWorkingTime');
}
}, 'Do you want to start your working time?', 'Working time', {}, Et2Dialog.BUTTONS_YES_NO);
}
// overall timer running for more than 16 hours, ask to stop