Révision 25220fd6 src/app/home/home.component.ts
src/app/home/home.component.ts | ||
---|---|---|
33 | 33 |
public pseudo: string; |
34 | 34 |
public email: string; |
35 | 35 |
public label: string; |
36 |
public legende: string; |
|
36 | 37 |
public album: string; |
37 | 38 |
public albumPass: string; |
38 | 39 |
private photoEditor; |
... | ... | |
70 | 71 |
this.album = getString("album", ""); |
71 | 72 |
this.albumPass = getString("albumPass", ""); |
72 | 73 |
this.label = ""; |
74 |
this.legende = ""; |
|
73 | 75 |
this.isBusy = false; |
74 | 76 |
this.enableButtons("btnSendPicture", false) |
75 | 77 |
} |
... | ... | |
211 | 213 |
this.isBusy = true; |
212 | 214 |
let labelObj = <TextField>getViewById(app.getRootView(), "label"); |
213 | 215 |
this.label = labelObj.text; |
216 |
let legendeObj = <TextField>getViewById(app.getRootView(), "legende"); |
|
217 |
this.legende = legendeObj.text; |
|
214 | 218 |
let albumObj = <TextField>getViewById(app.getRootView(), "album"); |
215 | 219 |
this.album = albumObj.text.toLowerCase().replace(/[^a-z0-9]/g, ""); |
216 | 220 |
albumObj = <TextField>getViewById(app.getRootView(), "albumPass"); |
... | ... | |
247 | 251 |
const filePath = path.join(folderPath, fileName); |
248 | 252 |
let labelObj = <TextField>getViewById(app.getRootView(), "label"); |
249 | 253 |
this.label = labelObj.text; |
254 |
let legendeObj = <TextField>getViewById(app.getRootView(), "legende"); |
|
255 |
this.legende = legendeObj.text; |
|
250 | 256 |
|
251 | 257 |
console.log("On voudrait uploader le fichier " + filePath + " dans l'album " + this.album + " sous le nom " + this.label); |
252 | 258 |
|
... | ... | |
282 | 288 |
{ name: "login", value: this.base64Encode(this.pseudo) }, |
283 | 289 |
{ name: "email", value: this.base64Encode(this.email) }, |
284 | 290 |
{ name: "label", value: this.base64Encode(this.label) }, |
291 |
{ name: "legende", value: this.base64Encode(this.legende) }, |
|
285 | 292 |
{ name: "album", value: this.base64Encode(this.album) }, |
286 | 293 |
{ name: "albumPass", value: this.base64Encode(this.albumPass) }, |
287 | 294 |
{ name: "version", value: "2" }, |
Formats disponibles : Unified diff