Skip to content

Commit

Permalink
linagora#138 copy all module parts related to avatar edition
Browse files Browse the repository at this point in the history
The file is src/frontend/js/modules/avatar/avatar-edition.js
The angular module name is esn.avatar.edition
  • Loading branch information
MichaelBailly committed Sep 18, 2020
1 parent 56cdea8 commit a56f3d9
Show file tree
Hide file tree
Showing 3 changed files with 506 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/frontend/js/modules/avatar/avatar-edit-modal.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.modal.center.fade.in.modal-profile-avatar(tabindex="-1", role="dialog", id="edit-avatar-dialog")
.modal-dialog
.modal-content
.modal-header
button.close(type="button", ng-click="$hide()") ×
h4.modal-title(ng-hide="uploading") {{ 'Edit your avatar' | translate }}
h4.modal-title(ng-show="uploading") {{ 'Updating your avatar' | translate }}...
.modal-body.overflow-none
avatar-picker(avatar-placeholder="{{avatarURL}}")
.modal-footer(ng-hide='uploading')
button.btn.btn-link.color-default(type="button", ng-disabled="uploading", ng-click="$hide()") {{ 'Cancel' | translate }}
button.btn.btn-primary(type="button", ng-disabled="uploading || !preview", ng-click="upload()") {{ 'Update' | translate }}
Loading

0 comments on commit a56f3d9

Please sign in to comment.