File tree Expand file tree Collapse file tree 4 files changed +44
-0
lines changed
src/Resources/app/administration/src
view/sw-profile-index-general Expand file tree Collapse file tree 4 files changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import nlNL from './snippet/nl-NL.json';
33
44import './component/rl-user-otp' ;
55import './override/sw-login/view/sw-login-login' ;
6+ import './override/sw-profile/page/sw-profile-index' ;
67import './override/sw-profile/view/sw-profile-index-general' ;
78import './override/sw-users-permissions/page/sw-users-permissions-user-detail' ;
89import './override/sw-customer/component/sw-customer-base-info' ;
Original file line number Diff line number Diff line change 1+ import template from './sw-profile-index.html.twig' ;
2+
3+ const { Component } = Shopware ;
4+
5+ if ( Component . getComponentRegistry ( ) . has ( 'sw-profile-index' ) ) {
6+ Component . override ( 'sw-profile-index' , {
7+ template,
8+ } ) ;
9+ }
Original file line number Diff line number Diff line change 1+ {% block sw_profile_index_router_view %}
2+ <template v-if =" isUserLoading" >
3+ <sw -skeleton />
4+ <sw -skeleton />
5+ </template >
6+
7+ <router -view
8+ v-else
9+ v-bind =" {
10+ user,
11+ timezoneOptions,
12+ languages,
13+ newPassword,
14+ newPasswordConfirm,
15+ avatarMediaItem,
16+ isUserLoading,
17+ languageId,
18+ isDisabled,
19+ userRepository,
20+ }"
21+ @new-password-change =" onChangeNewPassword"
22+ @new-password-confirm-change =" onChangeNewPasswordConfirm"
23+ @media-upload =" setMediaItem"
24+ @media-remove =" onUnlinkAvatar"
25+ @media-open =" openMediaModal"
26+ @rl- 2fa-save =" onSave"
27+ />
28+ {% endblock %}
Original file line number Diff line number Diff line change @@ -5,5 +5,11 @@ const { Component } = Shopware;
55if ( Component . getComponentRegistry ( ) . has ( 'sw-profile-index-general' ) ) {
66 Component . override ( 'sw-profile-index-general' , {
77 template,
8+
9+ methods : {
10+ onSave ( ) {
11+ this . $emit ( 'rl-2fa-save' ) ;
12+ }
13+ }
814 } ) ;
915}
You can’t perform that action at this time.
0 commit comments