|
|
|
<div class="confirm_modal_wrap" my-modal-position>
|
|
|
|
|
|
|
|
<a class="modal-close-button" ng-click="$dismiss()"><i></i></a>
|
|
|
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
|
|
|
<div class="confirm_modal_description" ng-switch="type">
|
|
|
|
<span ng-switch-when="LOGOUT">Are you sure you want to log out?</span>
|
|
|
|
<span ng-switch-when="WEBOGRAM_UPDATED_RELOAD">A new version of Webogram is available. Load it?</span>
|
|
|
|
<span ng-switch-when="HISTORY_FLUSH">Are you sure? This can not be undone!</span>
|
|
|
|
<span ng-switch-when="TERMINATE_SESSIONS">Are you sure you want to log out all devices except for the current one?</span>
|
|
|
|
<span ng-switch-when="FILES_CLIPBOARD_PASTE">
|
|
|
|
<ng-pluralize count="files.length"
|
|
|
|
when="{'one': 'Are you sure to send file from clipboard?', 'other': 'Are you sure to send {} files from clipboard?'}">
|
|
|
|
</ng-pluralize>
|
|
|
|
</span>
|
|
|
|
<span ng-switch-when="FILE_CLIPBOARD_PASTE">Are you sure to send file(s) from clipboard?</span>
|
|
|
|
<span ng-switch-when="MESSAGE_DELETE">Are you sure to delete the message?</span>
|
|
|
|
<div ng-switch-when="LOGIN_PHONE_CORRECT">
|
|
|
|
Is this phone number correct?
|
|
|
|
<div class="confirm_phone_number"> <span ng-bind="country_code"></span> <span ng-bind="phone_number"></span> </div>
|
|
|
|
</div>
|
|
|
|
<span ng-switch-when="FORWARD_PEER">Are you sure to forward message(s) to <span ng-switch="peer_id > 0">
|
|
|
|
<span ng-switch-when="true">user <div class="confirm_peer" ng-bind-html="peer_data.rFullName"></div></span>
|
|
|
|
<span ng-switch-default>group <div class="confirm_peer" ng-bind-html="peer_data.rTitle"></div></span>
|
|
|
|
</span></span>
|
|
|
|
<span ng-switch-when="PHOTO_SHARE_PEER">Are you sure to forward photo to <span ng-switch="peer_id > 0">
|
|
|
|
<span ng-switch-when="true">user <div class="confirm_peer" ng-bind-html="peer_data.rFullName"></div></span>
|
|
|
|
<span ng-switch-default>group <div class="confirm_peer" ng-bind-html="peer_data.rTitle"></div></span>
|
|
|
|
</span></span>
|
|
|
|
<span ng-switch-when="VIDEO_SHARE_PEER">Are you sure to forward video to <span ng-switch="peer_id > 0">
|
|
|
|
<span ng-switch-when="true">user <div class="confirm_peer" ng-bind-html="peer_data.rFullName"></div></span>
|
|
|
|
<span ng-switch-default>group <div class="confirm_peer" ng-bind-html="peer_data.rTitle"></div></span>
|
|
|
|
</span></span>
|
|
|
|
<span ng-switch-when="SHARE_CONTACT_PEER">Are you sure to send contact to <span ng-switch="peer_id > 0">
|
|
|
|
<span ng-switch-when="true">user <div class="confirm_peer" ng-bind-html="peer_data.rFullName"></div></span>
|
|
|
|
<span ng-switch-default>group <div class="confirm_peer" ng-bind-html="peer_data.rTitle"></div></span>
|
|
|
|
</span></span>
|
|
|
|
<span ng-switch-default ng-bind="message || 'Are you sure?'"></span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
<a class="btn btn-link" ng-click="$dismiss()" ng-switch="type">
|
|
|
|
<span ng-switch-default>Cancel</span>
|
|
|
|
</a>
|
|
|
|
<button type="button" class="btn btn-primary" ng-switch="type" ng-click="$close()">
|
|
|
|
<span ng-switch-when="LOGOUT">Log Out</span>
|
|
|
|
<span ng-switch-when="HISTORY_FLUSH">Delete Chat</span>
|
|
|
|
<span ng-switch-when="FILES_CLIPBOARD_PASTE">Send</span>
|
|
|
|
<span ng-switch-when="FILE_CLIPBOARD_PASTE">Send</span>
|
|
|
|
<span ng-switch-when="MESSAGE_DELETE">Delete</span>
|
|
|
|
<span ng-switch-when="FORWARD_PEER">Forward message</span>
|
|
|
|
<span ng-switch-when="PHOTO_SHARE_PEER">Forward photo</span>
|
|
|
|
<span ng-switch-when="VIDEO_SHARE_PEER">Forward video</span>
|
|
|
|
<span ng-switch-when="SHARE_CONTACT_PEER">Send contact</span>
|
|
|
|
<span ng-switch-default>OK</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|