Commit 8c6f5804 authored by Volker Krause's avatar Volker Krause
Browse files

Improve naming of pkpass ical attachments

"Boarding pass" only makes sense for flights.
parent 1ae77aa4
Pipeline #95359 canceled with stage
...@@ -200,7 +200,8 @@ static void attachPass(const KCalendarCore::Event::Ptr &event, const QVector<QVa ...@@ -200,7 +200,8 @@ static void attachPass(const KCalendarCore::Event::Ptr &event, const QVector<QVa
event->deleteAttachments(QStringLiteral("application/vnd.apple.pkpass")); event->deleteAttachments(QStringLiteral("application/vnd.apple.pkpass"));
using namespace KCalendarCore; using namespace KCalendarCore;
Attachment att(data.toBase64(), QStringLiteral("application/vnd.apple.pkpass")); Attachment att(data.toBase64(), QStringLiteral("application/vnd.apple.pkpass"));
att.setLabel(i18n("Boarding Pass")); // TODO add passenger name after string freeze is lifted att.setLabel(JsonLd::canConvert<FlightReservation>(reservation) ? i18n("Boarding Pass")
: i18n("Ticket")); // TODO add passenger name after string freeze is lifted
event->addAttachment(att); event->addAttachment(att);
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment