mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-29 02:30:03 +00:00
feat(focusMode): make drop and drag work for focus mode
This commit is contained in:
parent
d6f9c71634
commit
7ee2fc230d
1 changed files with 5 additions and 3 deletions
|
|
@ -43,11 +43,13 @@
|
|||
return;
|
||||
}
|
||||
|
||||
const focusModeEl = ev.target.closest('')
|
||||
const focusModeEl = ev.target.closest('pomodoro-focus');
|
||||
const taskEl = ev.target.closest('.task');
|
||||
console.log('I am here!', taskEl);
|
||||
|
||||
if (taskEl) {
|
||||
if (focusModeEl) {
|
||||
const task = this.Tasks.getCurrent() || this.Tasks.getLastCurrent();
|
||||
this.openEditDialog(link, true, task);
|
||||
} else if (taskEl) {
|
||||
const $taskEl = angular.element(taskEl);
|
||||
const task = $taskEl.scope().modelValue;
|
||||
this.openEditDialog(link, true, task);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue