diff --git a/web/components.d.ts b/web/components.d.ts
index 6b4427f..f34dcd4 100644
--- a/web/components.d.ts
+++ b/web/components.d.ts
@@ -13,6 +13,7 @@ declare module 'vue' {
ListViewElement: typeof import('./src/components/ListViewElement.vue')['default']
LoginPage: typeof import('./src/components/loginPage.vue')['default']
MainPage: typeof import('./src/components/MainPage.vue')['default']
+ UpdateDialog: typeof import('./src/components/UpdateDialog.vue')['default']
UsersDialog: typeof import('./src/components/NavBarIcons/UsersDialog.vue')['default']
}
}
diff --git a/web/src/components/CategoryContainer.vue b/web/src/components/CategoryContainer.vue
index 9b7c1d8..7dc5064 100644
--- a/web/src/components/CategoryContainer.vue
+++ b/web/src/components/CategoryContainer.vue
@@ -2,15 +2,7 @@
{{ props.licenseGroupName }}:
-
+
diff --git a/web/src/components/ListViewElement.vue b/web/src/components/ListViewElement.vue
index 487eb9b..1c32a65 100644
--- a/web/src/components/ListViewElement.vue
+++ b/web/src/components/ListViewElement.vue
@@ -4,7 +4,7 @@
- {{ props.licenseName }}
+ {{ license.name }}
- {{ props.licenseKey }}
+ {{ license.key }}
{{
- props.startDate
- ? props.startDate.toLocaleDateString()
+ license.start
+ ? new Date(license.start).toLocaleDateString()
: "Indefinitely"
}}
@@ -36,8 +36,8 @@
{{
- props.endDate
- ? props.endDate.toLocaleDateString()
+ license.end
+ ? new Date(license.end).toLocaleDateString()
: "Indefinitely"
}}
@@ -53,11 +53,11 @@
class="logo mr-1"
width="24"
/>
-
+
- {{ props.amount }}
+ {{ license.amount }}
@@ -68,126 +68,14 @@
class="flex-grow-1 overflow-x-auto border-e-md align-self-end"
cols="10"
>
- {{ props.notes }}
+ {{ license.note }}
-
-
-
-
-
-
-
- Add License
-
-
- Add an extra License to the database
-
-
-
-
-
-
-
-
-
-
-
-
-
- all fields marked with * are required
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -203,108 +91,26 @@
diff --git a/web/src/types.ts b/web/src/types.ts
index 8df5c95..11e2599 100644
--- a/web/src/types.ts
+++ b/web/src/types.ts
@@ -12,6 +12,7 @@ export interface License {
key: string;
amount?: number;
note?: string;
+ group_id: string;
}
export interface CreateLicenseDto {