Skip to content

Commit

Permalink
Version 4.16.13
Browse files Browse the repository at this point in the history
  • Loading branch information
acaurrinhos committed Oct 11, 2024
1 parent de362df commit 8155c6a
Show file tree
Hide file tree
Showing 6 changed files with 215 additions and 30 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Cyclos 4 UI",
"description": "The new Cyclos 4 frontend",
"icon": "cyclos.png",
"version": "4.16.12",
"version": "4.16.13",
"license": "MIT",
"author": {
"name": "Cyclos development team",
Expand Down
2 changes: 1 addition & 1 deletion src/app/ui/banking/vouchers/redeem-voucher.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class RedeemVoucherComponent

resendPin() {
this.addSub(
this.vouchersService.resendPin({ key: this.dataForTransaction.token }).subscribe(res => {
this.vouchersService.resendPin({ key: this.dataForTransaction.token, user: this.userId }).subscribe(res => {
this.notification.info(this.i18n.voucher.pinSent((res || []).join(', ')));
})
);
Expand Down
14 changes: 9 additions & 5 deletions src/app/ui/users/documents/view-document.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,15 @@ export class ViewDocumentComponent extends BasePageComponent<DocumentView> imple
onDataInitialized(data: DocumentView) {
super.onDataInitialized(data);
const headingActions = [];
if (data.canEdit) {
headingActions.push(new HeadingAction(SvgIcon.Pencil, this.i18n.general.edit, () => this.navigateToEdit(), true));
}
if (data.canRemove) {
headingActions.push(new HeadingAction(SvgIcon.Trash, this.i18n.general.remove, () => this.remove(), true));
if (data.kind === DocumentKind.USER) {
if (data.canEdit) {
headingActions.push(
new HeadingAction(SvgIcon.Pencil, this.i18n.general.edit, () => this.navigateToEdit(), true)
);
}
if (data.canRemove) {
headingActions.push(new HeadingAction(SvgIcon.Trash, this.i18n.general.remove, () => this.remove(), true));
}
}
this.headingActions = headingActions;
}
Expand Down
1 change: 1 addition & 0 deletions src/i18n/i18n.nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -2039,6 +2039,7 @@
"listAds": "Toon advertenties",
"showFavorites": "Alleen favorieten",
"warningDisabledAd": "Deze advertentie heeft de status niet actief en kan niet worden bekeken door andere gebruikers. Om de advertentie te activeren, kies dan een prijs en sla de advertentie opnieuw op.",
"warningCurrencyNotAvailable": "De advertentie valuta is momenteel niet beschikbaar, selecteer een andere valuta of neem contact op met de administratie.",
"title": {
"search": "Zoek advertenties",
"myAdvertisements": "Mijn advertenties",
Expand Down
Loading

0 comments on commit 8155c6a

Please sign in to comment.