2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Added link to terms to box of credits history entries.

This commit is contained in:
23rd
2024-05-25 03:11:58 +03:00
committed by John Preston
parent 0bd780b20f
commit c942034ca4
3 changed files with 23 additions and 0 deletions

View File

@@ -481,6 +481,24 @@ void ReceiptCreditsBox(
box->verticalLayout(),
e);
Ui::AddSkip(content);
box->addRow(object_ptr<Ui::CenterWrap<>>(
box,
object_ptr<Ui::FlatLabel>(
box,
tr::lng_credits_box_out_about(
lt_link,
tr::lng_payments_terms_link(
) | rpl::map([](const QString &t) {
using namespace Ui::Text;
return Link(t, u"https://telegram.org/tos"_q);
}),
Ui::Text::WithEntities),
st::creditsBoxAboutDivider)));
Ui::AddSkip(content);
const auto button = box->addButton(tr::lng_box_ok(), [=] {
box->closeBox();
});