diff --git a/module/dialog-item-achat.js b/module/dialog-item-achat.js index 0d9c9c90..b6b3f6ba 100644 --- a/module/dialog-item-achat.js +++ b/module/dialog-item-achat.js @@ -29,7 +29,7 @@ export class DialogItemAchat extends Dialog { constructor(html, vendeur, acheteur, venteData, chatMessageIdVente) { const isConsommable = venteData.item.type == 'nourritureboisson'; - let options = { classes: ["dialogachat"], width: 400, height: isConsommable ? 450 : 300, 'z-index': 99999 }; + let options = { classes: ["dialogachat"], width: 400, height: isConsommable ? 450 : 350, 'z-index': 99999 }; const actionAchat = venteData.prixLot > 0 ? "Acheter" : "Prendre"; const buttons = {}; @@ -39,7 +39,7 @@ export class DialogItemAchat extends Dialog { buttons[actionAchat] = { label: actionAchat, callback: it => { this.onAchat(); } }; buttons["decliner"] = { label: "Décliner", callback: it => { } }; let conf = { - title: actionAchat, + title: venteData.acheteur? venteData.acheteur.name + " - " + actionAchat : actionAchat, content: html, default: actionAchat, buttons: buttons diff --git a/styles/img/ui/icon_echoppe.webp b/styles/img/ui/icon_echoppe.webp new file mode 100644 index 00000000..e547bf14 Binary files /dev/null and b/styles/img/ui/icon_echoppe.webp differ diff --git a/templates/dialog-item-achat.html b/templates/dialog-item-achat.html index b6c6b9e3..b182a975 100644 --- a/templates/dialog-item-achat.html +++ b/templates/dialog-item-achat.html @@ -1,14 +1,24 @@
\ No newline at end of file +