Telegram Web K with changes to work inside I2P
https://web.telegram.i2p/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.4 KiB
39 lines
1.4 KiB
/* |
|
* https://github.com/morethanwords/tweb |
|
* Copyright (C) 2019-2021 Eduard Kuzmenko |
|
* https://github.com/morethanwords/tweb/blob/master/LICENSE |
|
*/ |
|
|
|
import { SliderSuperTabEventable } from "../../../sliderTab"; |
|
import PrivacySection from "../../../privacySection"; |
|
import { LangPackKey } from "../../../../lib/langPack"; |
|
|
|
export default class AppPrivacyCallsTab extends SliderSuperTabEventable { |
|
protected init() { |
|
this.header.classList.add('with-border'); |
|
this.container.classList.add('privacy-tab', 'privacy-calls'); |
|
this.setTitle('PrivacySettings.VoiceCalls'); |
|
|
|
const caption: LangPackKey = 'PrivacySettingsController.PhoneCallDescription'; |
|
new PrivacySection({ |
|
tab: this, |
|
title: 'WhoCanCallMe', |
|
inputKey: 'inputPrivacyKeyPhoneCall', |
|
captions: [caption, caption, caption], |
|
exceptionTexts: ['PrivacySettingsController.NeverAllow', 'PrivacySettingsController.AlwaysAllow'], |
|
appendTo: this.scrollable |
|
}); |
|
|
|
{ |
|
const caption: LangPackKey = 'PrivacySettingsController.P2p.Desc'; |
|
new PrivacySection({ |
|
tab: this, |
|
title: 'PrivacyP2PHeader', |
|
inputKey: 'inputPrivacyKeyPhoneP2P', |
|
captions: [caption, caption, caption], |
|
exceptionTexts: ['PrivacySettingsController.NeverAllow', 'PrivacySettingsController.AlwaysAllow'], |
|
appendTo: this.scrollable |
|
}); |
|
} |
|
} |
|
}
|
|
|