feat: Added tasks with no projects to default calendar

This commit is contained in:
Aerex
2020-09-18 22:15:12 -05:00
parent ce60c373f8
commit 0a01e6e905
5 changed files with 52 additions and 27 deletions

View File

@@ -34,7 +34,7 @@ class StorageManager {
$this->storages[$name] = $storage;
}
public function import(Calendar $calendar) {
public function import(Calendar $calendar, string $displayname) {
if (!isset($this->configs)) {
throw new \Exception('StorageManger was not initialize or configs are not defined');
}
@@ -43,7 +43,7 @@ class StorageManager {
if (!isset($storage)){
throw new \Exception();
}
$storage->save($calendar);
$storage->save($calendar, $displayname);
}
}
@@ -60,3 +60,4 @@ class StorageManager {
}
}
}