adds photo upload for summit logs
This commit is contained in:
@@ -7,6 +7,8 @@ class SummitLog {
|
||||
text?: string;
|
||||
gpx?: string;
|
||||
_gpx: File | null;
|
||||
photos: string[];
|
||||
_photos: File[];
|
||||
distance?: number
|
||||
elevation_gain?: number
|
||||
elevation_loss?: number
|
||||
@@ -19,7 +21,7 @@ class SummitLog {
|
||||
author?: UserAnonymous
|
||||
}
|
||||
|
||||
constructor(date: string, params?: { id?: string, text?: string, distance?: number, elevation_loss?: number, elevation_gain?: number, duration?: number }) {
|
||||
constructor(date: string, params?: { id?: string, text?: string, distance?: number, elevation_loss?: number, elevation_gain?: number, duration?: number, photos?: string[] }) {
|
||||
this.date = date;
|
||||
this.id = params?.id;
|
||||
this.text = params?.text ?? "";
|
||||
@@ -29,6 +31,8 @@ class SummitLog {
|
||||
this.elevation_loss = params?.elevation_loss
|
||||
this.duration = params?.duration
|
||||
this._gpx = null
|
||||
this.photos = params?.photos ?? []
|
||||
this._photos = [];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user