2014-12-11 07:25:26 +00:00
|
|
|
<div class="confirm_modal_wrap md_simple_modal_wrap" my-modal-position>
|
2014-04-05 16:07:41 +00:00
|
|
|
|
2014-12-11 07:25:26 +00:00
|
|
|
<div class="md_simple_modal_body">
|
2014-04-05 16:07:41 +00:00
|
|
|
|
|
|
|
<div class="confirm_modal_description" ng-switch="type">
|
2014-09-16 16:12:52 +00:00
|
|
|
<span ng-switch-when="LOGOUT" my-i18n="confirm_modal_logout"></span>
|
|
|
|
<span ng-switch-when="WEBOGRAM_UPDATED_RELOAD" my-i18n="confirm_modal_update_reload"></span>
|
|
|
|
<span ng-switch-when="HISTORY_FLUSH" my-i18n="confirm_modal_history_flush"></span>
|
|
|
|
<span ng-switch-when="TERMINATE_SESSIONS" my-i18n="confirm_modal_terminate_sessions"></span>
|
2015-04-08 13:15:56 +00:00
|
|
|
<span ng-switch-when="TERMINATE_SESSION" my-i18n="confirm_modal_terminate_session"></span>
|
2014-04-29 13:40:00 +00:00
|
|
|
|
2014-04-08 11:07:38 +00:00
|
|
|
<span ng-switch-when="FILES_CLIPBOARD_PASTE">
|
|
|
|
<ng-pluralize count="files.length"
|
2014-09-16 16:12:52 +00:00
|
|
|
when="confirm_modal_clipboard_X_files_send">
|
2014-04-08 11:07:38 +00:00
|
|
|
</ng-pluralize>
|
|
|
|
</span>
|
2016-02-08 18:27:09 +00:00
|
|
|
<div ng-switch-when="FILE_CLIPBOARD_PASTE">
|
|
|
|
<span my-i18n="confirm_modal_clipboard_file_send"></span>
|
|
|
|
<div class="confirm_modal_paste_image" ng-if="fileUrl !== false" ng-style="{backgroundImage: 'url(' + fileUrl + ')'}"></div>
|
|
|
|
</div>
|
2014-09-16 16:12:52 +00:00
|
|
|
<span ng-switch-when="MESSAGE_DELETE" my-i18n="confirm_modal_message_delete"></span>
|
2015-01-16 11:43:27 +00:00
|
|
|
<span ng-switch-when="MESSAGES_DELETE">
|
|
|
|
<ng-pluralize count="count"
|
|
|
|
when="confirm_modal_X_messages_delete">
|
|
|
|
</ng-pluralize>
|
|
|
|
</span>
|
2014-12-11 07:25:26 +00:00
|
|
|
<span ng-switch-when="PHOTO_DELETE" my-i18n="confirm_modal_photo_delete"></span>
|
2014-09-16 16:12:52 +00:00
|
|
|
<span ng-switch-when="CONTACTS_IMPORT_PERFORM" my-i18n="confirm_modal_contacts_import"></span>
|
2014-04-27 08:25:04 +00:00
|
|
|
<div ng-switch-when="LOGIN_PHONE_CORRECT">
|
2014-09-16 16:12:52 +00:00
|
|
|
<my-i18n msgid="confirm_modal_login_phone_correct"></my-i18n>
|
|
|
|
<div class="confirm_phone_number">
|
|
|
|
<span ng-bind="country_code"></span> <span ng-bind="phone_number"></span>
|
|
|
|
</div>
|
2014-04-27 08:25:04 +00:00
|
|
|
</div>
|
2014-09-16 16:12:52 +00:00
|
|
|
<my-i18n>
|
|
|
|
<span ng-switch-when="FORWARD_PEER" my-i18n-format="confirm_modal_forward_to_peer"></span>
|
|
|
|
<span ng-switch-when="SHARE_CONTACT_PEER" my-i18n-format="confirm_modal_send_to_peer"></span>
|
2015-10-13 14:25:52 +00:00
|
|
|
<span ng-switch-when="SHARE_URL" my-i18n-format="confirm_modal_send_to_peer"></span>
|
2014-09-16 16:12:52 +00:00
|
|
|
<span ng-switch-when="EXT_SHARE_PEER" my-i18n-format="confirm_modal_share_file_peer"></span>
|
2015-07-10 18:02:29 +00:00
|
|
|
<span ng-switch-when="INVITE_TO_GROUP" my-i18n-format="confirm_modal_invite_peer"></span>
|
2014-09-16 16:12:52 +00:00
|
|
|
<my-i18n-param name="peer">
|
2015-09-23 18:18:39 +00:00
|
|
|
<strong my-peer-link="peer_id"></strong>
|
2014-09-16 16:12:52 +00:00
|
|
|
</my-i18n-param>
|
|
|
|
</my-i18n>
|
2014-09-19 14:19:09 +00:00
|
|
|
<div ng-switch-when="APPLY_LANG_WITH_RELOAD" my-i18n="confirm_modal_apply_lang_with_reload_md"></div>
|
2014-11-13 12:35:07 +00:00
|
|
|
<div ng-switch-when="MIGRATE_TO_HTTPS" my-i18n="confirm_modal_migrate_to_https_md"></div>
|
2014-11-13 16:44:32 +00:00
|
|
|
<div ng-switch-when="SWITCH_DESKTOP_VERSION" my-i18n="confirm_modal_resize_desktop_md"></div>
|
|
|
|
<div ng-switch-when="SWITCH_MOBILE_VERSION" my-i18n="confirm_modal_resize_mobile_md"></div>
|
2015-04-07 20:46:41 +00:00
|
|
|
<div ng-switch-when="RECOVERY_EMAIL_EMPTY" my-i18n="confirm_modal_recovery_email_empty_md"></div>
|
|
|
|
<div ng-switch-when="PASSWORD_ABORT_SETUP" my-i18n="confirm_modal_abort_password_setup"></div>
|
|
|
|
<div ng-switch-when="RESET_ACCOUNT" my-i18n="confirm_modal_reset_account_md"></div>
|
2015-05-01 13:01:48 +00:00
|
|
|
<div ng-switch-when="JOIN_GROUP_BY_LINK" my-i18n="confirm_modal_join_group_link">
|
|
|
|
<my-i18n-param name="title"><strong ng-bind="title"></strong></my-i18n-param>
|
|
|
|
</div>
|
2015-10-01 11:53:02 +00:00
|
|
|
<div ng-switch-when="JOIN_CHANNEL_BY_LINK" my-i18n="confirm_modal_join_channel_link">
|
|
|
|
<my-i18n-param name="title"><strong ng-bind="title"></strong></my-i18n-param>
|
|
|
|
</div>
|
2015-05-01 13:01:48 +00:00
|
|
|
<div ng-switch-when="REVOKE_GROUP_INVITE_LINK" my-i18n="confirm_modal_revoke_group_link"></div>
|
2015-09-28 20:25:55 +00:00
|
|
|
<div ng-switch-when="REVOKE_CHANNEL_INVITE_LINK" my-i18n="confirm_modal_revoke_channel_link"></div>
|
|
|
|
<div ng-switch-when="CHANNEL_DELETE" my-i18n="confirm_modal_delete_channel_md"></div>
|
2015-11-23 10:23:55 +00:00
|
|
|
<div ng-switch-when="MEGAGROUP_DELETE" my-i18n="confirm_modal_delete_group_md"></div>
|
2015-11-21 20:55:32 +00:00
|
|
|
<div ng-switch-when="JUMP_EXT_URL" my-i18n="confirm_modal_jump_ext_url_md" class="confirm_modal_extlink_jump">
|
2015-10-13 20:48:46 +00:00
|
|
|
<my-i18n-param name="url"><strong ng-bind="url"></strong></my-i18n-param>
|
|
|
|
</div>
|
2015-11-21 20:55:32 +00:00
|
|
|
<div ng-switch-when="SUPERGROUP_MIGRATE" my-i18n="confirm_modal_migrate_supergroup_md"></div>
|
|
|
|
|
2015-05-01 13:01:48 +00:00
|
|
|
|
|
|
|
|
2014-09-19 12:13:18 +00:00
|
|
|
<span ng-switch-default ng-switch="message.length > 0">
|
|
|
|
<span ng-switch-when="true" ng-bind="message"></span>
|
2014-09-19 14:19:09 +00:00
|
|
|
<span ng-switch-default my-i18n="confirm_modal_are_u_sure"></span>
|
2014-09-19 12:13:18 +00:00
|
|
|
</span>
|
2014-04-05 16:07:41 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2014-12-11 07:25:26 +00:00
|
|
|
<div class="md_simple_modal_footer">
|
|
|
|
<button class="btn btn-md" ng-click="$dismiss()">
|
|
|
|
<span my-i18n="modal_cancel"></span>
|
|
|
|
</button>
|
2015-04-07 20:46:41 +00:00
|
|
|
<button class="btn btn-md btn-md-primary" ng-switch="type" ng-click="$close()" ng-class="{'btn-md-danger': type == 'RESET_ACCOUNT'}" my-focused >
|
2014-09-16 16:12:52 +00:00
|
|
|
<span ng-switch-when="LOGOUT" my-i18n="confirm_modal_logout_submit"></span>
|
|
|
|
<span ng-switch-when="HISTORY_FLUSH" my-i18n="confirm_modal_history_flush_submit"></span>
|
|
|
|
<span ng-switch-when="FILES_CLIPBOARD_PASTE" my-i18n="confirm_modal_clipboard_files_send_submit"></span>
|
|
|
|
<span ng-switch-when="FILE_CLIPBOARD_PASTE" my-i18n="confirm_modal_clipboard_file_send_submit"></span>
|
|
|
|
<span ng-switch-when="MESSAGE_DELETE" my-i18n="confirm_modal_message_delete_submit"></span>
|
2015-01-16 11:43:27 +00:00
|
|
|
<span ng-switch-when="MESSAGES_DELETE" my-i18n="confirm_modal_messages_delete_submit"></span>
|
2014-12-11 07:25:26 +00:00
|
|
|
<span ng-switch-when="PHOTO_DELETE" my-i18n="confirm_modal_photo_delete_submit"></span>
|
2014-09-16 16:12:52 +00:00
|
|
|
<span ng-switch-when="FORWARD_PEER" my-i18n="confirm_modal_forward_message_submit"></span>
|
|
|
|
<span ng-switch-when="PHOTO_SHARE_PEER" my-i18n="confirm_modal_share_photo_submit"></span>
|
|
|
|
<span ng-switch-when="VIDEO_SHARE_PEER" my-i18n="confirm_modal_share_video_submit"></span>
|
|
|
|
<span ng-switch-when="SHARE_CONTACT_PEER" my-i18n="confirm_modal_share_contact_submit"></span>
|
|
|
|
<span ng-switch-when="EXT_SHARE_PEER" my-i18n="confirm_modal_share_file_submit"></span>
|
2015-04-07 20:46:41 +00:00
|
|
|
<span ng-switch-when="RESET_ACCOUNT" my-i18n="confirm_modal_reset_account_submit"></span>
|
2014-09-16 16:12:52 +00:00
|
|
|
<span ng-switch-default my-i18n="modal_ok"></span>
|
2014-04-05 16:07:41 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
2014-09-16 16:12:52 +00:00
|
|
|
</div>
|