forked from VirtoCommerce/vc-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PT-946: Redesign Login on behalf UX (VirtoCommerce#2263)
- Loading branch information
Egis
authored
May 18, 2021
1 parent
c0dafa1
commit 59955b5
Showing
9 changed files
with
69 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
src/VirtoCommerce.Platform.Web/wwwroot/images/dialogs/exclamation.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 0 additions & 69 deletions
69
src/VirtoCommerce.Platform.Web/wwwroot/js/app/security/blades/loginOnBehalf-list.js
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
src/VirtoCommerce.Platform.Web/wwwroot/js/app/security/blades/loginOnBehalf-list.tpl.html
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
src/VirtoCommerce.Platform.Web/wwwroot/js/app/security/services/loginOfBehalfUrlResolver.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
angular.module('platformWebApp') | ||
.factory('platformWebApp.loginOfBehalfUrlResolver', [() => { | ||
var _resolver; | ||
|
||
var service = { | ||
// register the method to resolve the URL | ||
register: (resolver) => { | ||
_resolver = resolver; | ||
}, | ||
resolve: (user) => { | ||
if (angular.isFunction(_resolver)) { | ||
return _resolver(user); | ||
} | ||
} | ||
}; | ||
return service; | ||
}]); |
7 changes: 5 additions & 2 deletions
7
src/VirtoCommerce.Platform.Web/wwwroot/js/common/dialogs/notifyDialog.tpl.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
<div class="modal-header"> | ||
<div class="modal-header"> | ||
<h3 class="modal-title">{{title | translate: titleValues}}</h3> | ||
</div> | ||
<div class="modal-body"> | ||
<span ng-if="showWarning" class="warning"> | ||
<img src="/images/dialogs/exclamation.svg" alt=""> | ||
</span> | ||
{{message | translate: messageValues}} | ||
</div> | ||
<div class="modal-footer"> | ||
<button class="btn btn-primary" ng-click="yes()">{{ 'platform.commands.ok' | translate }}</button> | ||
</div> | ||
</div> |