Hello, {{ title }}
-Congratulations! Your app is running. 🎉
-diff --git a/src/js/src/lib/action/tracker-action.ts b/src/js/src/lib/action/tracker-action.ts
index 6bab4e4..7d2b4c6 100644
--- a/src/js/src/lib/action/tracker-action.ts
+++ b/src/js/src/lib/action/tracker-action.ts
@@ -2,7 +2,7 @@ import { KimaiApi } from "../api/kimai-api";
import { KimaiApiTrackerConnector } from "../api/kimai-api-tracker-connector";
import { ActionKey, StateKey } from "../constants";
import { Store } from "../store/store";
-import { Tracker } from "../tracker";
+import { Tracker, TrackerEvent } from "../tracker";
import { AppState } from "../types";
export function initTrackerAction() {
@@ -15,7 +15,9 @@ export function initTrackerAction() {
if (!Tracker.has(context)) {
return console.warn("Tracker not found", { context });
}
- Tracker.get(context)!.settings = settings;
+ const tracker = Tracker.get(context)!;
+ tracker.settings = settings;
+ tracker.dispatchEvent(new Event(TrackerEvent.requestWorkedToday));
}
);
diff --git a/src/ui/angular.json b/src/ui/angular.json
index 9ebb244..317fcd0 100644
--- a/src/ui/angular.json
+++ b/src/ui/angular.json
@@ -3,79 +3,6 @@
"version": 1,
"newProjectRoot": "projects",
"projects": {
- "ui": {
- "projectType": "application",
- "schematics": {},
- "root": "",
- "sourceRoot": "src",
- "prefix": "app",
- "architect": {
- "build": {
- "builder": "@angular-devkit/build-angular:application",
- "options": {
- "outputPath": "dist/ui",
- "index": "src/index.html",
- "browser": "src/main.ts",
- "polyfills": ["zone.js"],
- "tsConfig": "tsconfig.app.json",
- "assets": ["src/favicon.ico", "src/assets"],
- "styles": ["src/styles.css"],
- "scripts": []
- },
- "configurations": {
- "production": {
- "budgets": [
- {
- "type": "initial",
- "maximumWarning": "500kb",
- "maximumError": "1mb"
- },
- {
- "type": "anyComponentStyle",
- "maximumWarning": "2kb",
- "maximumError": "4kb"
- }
- ],
- "outputHashing": "all"
- },
- "development": {
- "optimization": false,
- "extractLicenses": false,
- "sourceMap": true
- }
- },
- "defaultConfiguration": "production"
- },
- "serve": {
- "builder": "@angular-devkit/build-angular:dev-server",
- "configurations": {
- "production": {
- "buildTarget": "ui:build:production"
- },
- "development": {
- "buildTarget": "ui:build:development"
- }
- },
- "defaultConfiguration": "development"
- },
- "extract-i18n": {
- "builder": "@angular-devkit/build-angular:extract-i18n",
- "options": {
- "buildTarget": "ui:build"
- }
- },
- "test": {
- "builder": "@angular-devkit/build-angular:karma",
- "options": {
- "polyfills": ["zone.js", "zone.js/testing"],
- "tsConfig": "tsconfig.spec.json",
- "assets": ["src/favicon.ico", "src/assets"],
- "styles": ["src/styles.css"],
- "scripts": []
- }
- }
- }
- },
"action-track-pi": {
"projectType": "application",
"schematics": {},
diff --git a/src/ui/src/app/app.component.css b/src/ui/src/app/app.component.css
deleted file mode 100644
index e69de29..0000000
diff --git a/src/ui/src/app/app.component.html b/src/ui/src/app/app.component.html
deleted file mode 100644
index 1b7f2c3..0000000
--- a/src/ui/src/app/app.component.html
+++ /dev/null
@@ -1,336 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- Congratulations! Your app is running. 🎉Hello, {{ title }}
-