web: added notes to display
Co-authored-by: Sphereso <Sphereso@users.noreply.github.com>
This commit is contained in:
parent
4e4f7c5811
commit
b6afc7de07
3 changed files with 4 additions and 2 deletions
|
@ -9,7 +9,7 @@
|
||||||
:startDate="license.start ? new Date(license.start) : null"
|
:startDate="license.start ? new Date(license.start) : null"
|
||||||
:endDate="license.end ? new Date(license.end) : null"
|
:endDate="license.end ? new Date(license.end) : null"
|
||||||
:amount="license.amount"
|
:amount="license.amount"
|
||||||
notes="license.notes"
|
:notes="license.note"
|
||||||
/>
|
/>
|
||||||
</li>
|
</li>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -267,7 +267,7 @@ async function submit(event: SubmitEventPromise) {
|
||||||
key: addLicenseKey.value,
|
key: addLicenseKey.value,
|
||||||
start: addStartDate.value ?? null,
|
start: addStartDate.value ?? null,
|
||||||
end: addStopDate.value ?? null,
|
end: addStopDate.value ?? null,
|
||||||
notes: addNotes.value,
|
note: addNotes.value,
|
||||||
};
|
};
|
||||||
console.log(data);
|
console.log(data);
|
||||||
licenseMutate(data);
|
licenseMutate(data);
|
||||||
|
|
|
@ -11,6 +11,7 @@ export interface License {
|
||||||
end?: string;
|
end?: string;
|
||||||
key: string;
|
key: string;
|
||||||
amount?: number;
|
amount?: number;
|
||||||
|
note?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CreateLicenseDto {
|
export interface CreateLicenseDto {
|
||||||
|
@ -20,6 +21,7 @@ export interface CreateLicenseDto {
|
||||||
key: string;
|
key: string;
|
||||||
amount?: number;
|
amount?: number;
|
||||||
group_id: string;
|
group_id: string;
|
||||||
|
note?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CreateGroupDto = Omit<LicenseGroup, "id" | "licenses">;
|
export type CreateGroupDto = Omit<LicenseGroup, "id" | "licenses">;
|
||||||
|
|
Loading…
Reference in a new issue