mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-30 13:03:53 +01:00
org create desc and page scroll on state changes
This commit is contained in:
parent
71adf31f7b
commit
eaba45369b
@ -242,6 +242,10 @@ angular
|
|||||||
});
|
});
|
||||||
})
|
})
|
||||||
.run(function ($rootScope, authService, $state) {
|
.run(function ($rootScope, authService, $state) {
|
||||||
|
$rootScope.$on('$stateChangeSuccess', function () {
|
||||||
|
$('html, body').animate({ scrollTop: 0 }, 200);
|
||||||
|
});
|
||||||
|
|
||||||
$rootScope.$on('$stateChangeStart', function (event, toState, toParams) {
|
$rootScope.$on('$stateChangeStart', function (event, toState, toParams) {
|
||||||
if (!toState.data || !toState.data.authorize) {
|
if (!toState.data || !toState.data.authorize) {
|
||||||
if (toState.data && toState.data.skipAuthorize) {
|
if (toState.data && toState.data.skipAuthorize) {
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
<h1>Create Organization</h1>
|
<h1>Create Organization</h1>
|
||||||
</section>
|
</section>
|
||||||
<section class="content">
|
<section class="content">
|
||||||
|
<p>
|
||||||
|
Organizations allow you to share parts of your vault with others as well as manage related users
|
||||||
|
for a specific entity (such as a company).
|
||||||
|
</p>
|
||||||
<form name="createOrgForm" ng-submit="createOrgForm.$valid && submit(model)" api-form="submitPromise">
|
<form name="createOrgForm" ng-submit="createOrgForm.$valid && submit(model)" api-form="submitPromise">
|
||||||
<div class="box box-default">
|
<div class="box box-default">
|
||||||
<div class="box-header with-border">
|
<div class="box-header with-border">
|
||||||
|
Loading…
Reference in New Issue
Block a user