Browse Source

[bug:euvr] Create Organization Updates (#1664)

pull/1669/head
Vincent Salucci 4 years ago committed by GitHub
parent
commit
f5245a280e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/app/accounts/login.component.ts
  2. 2
      src/app/accounts/register.component.ts
  3. 2
      src/app/components/organization-switcher.component.html
  4. 6
      src/app/modules/vault-filter/components/organization-filter.component.html
  5. 10
      src/app/oss-routing.module.ts
  6. 14
      src/app/settings/create-organization.component.html
  7. 2
      src/app/vault/share.component.html

2
src/app/accounts/login.component.ts

@ -74,7 +74,7 @@ export class LoginComponent extends BaseLoginComponent { @@ -74,7 +74,7 @@ export class LoginComponent extends BaseLoginComponent {
if (qParams.premium != null) {
this.routerService.setPreviousUrl("/settings/premium");
} else if (qParams.org != null) {
const route = this.router.createUrlTree(["settings/create-organization"], {
const route = this.router.createUrlTree(["create-organization"], {
queryParams: { plan: qParams.org },
});
this.routerService.setPreviousUrl(route.toString());

2
src/app/accounts/register.component.ts

@ -71,7 +71,7 @@ export class RegisterComponent extends BaseRegisterComponent { @@ -71,7 +71,7 @@ export class RegisterComponent extends BaseRegisterComponent {
} else if (qParams.org != null) {
this.showCreateOrgMessage = true;
this.referenceData.flow = qParams.org;
const route = this.router.createUrlTree(["settings/create-organization"], {
const route = this.router.createUrlTree(["create-organization"], {
queryParams: { plan: qParams.org },
});
this.routerService.setPreviousUrl(route.toString());

2
src/app/components/organization-switcher.component.html

@ -58,7 +58,7 @@ @@ -58,7 +58,7 @@
</li>
<bit-menu-divider></bit-menu-divider>
<li class="tw-list-none" role="none">
<a bit-menu-item routerLink="/settings/create-organization">
<a bit-menu-item routerLink="/create-organization">
<i class="bwi bwi-plus mr-2"></i>
{{ "newOrganization" | i18n }}</a
>

6
src/app/modules/vault-filter/components/organization-filter.component.html

@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
</li>
<li class="filter-option">
<span class="filter-buttons">
<a href="#" routerLink="/settings/create-organization" class="filter-button">
<a href="#" routerLink="/create-organization" class="filter-button">
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i>
{{ "newOrganization" | i18n }}
</a>
@ -47,7 +47,7 @@ @@ -47,7 +47,7 @@
</button>
<a
href="#"
routerLink="/settings/create-organization"
routerLink="/create-organization"
class="text-muted ml-auto create-organization-link"
appA11yTitle="{{ 'newOrganization' | i18n }}"
>
@ -112,7 +112,7 @@ @@ -112,7 +112,7 @@
</button>
<a
href="#"
routerLink="/settings/create-organization"
routerLink="/create-organization"
class="text-muted ml-auto create-organization-link"
appA11yTitle="{{ 'newOrganization' | i18n }}"
>

10
src/app/oss-routing.module.ts

@ -155,6 +155,11 @@ const routes: Routes = [ @@ -155,6 +155,11 @@ const routes: Routes = [
.IndividualVaultModule,
},
{ path: "sends", component: SendComponent, data: { title: "Send" } },
{
path: "create-organization",
component: CreateOrganizationComponent,
data: { titleId: "newOrganization" },
},
{
path: "settings",
component: SettingsComponent,
@ -181,11 +186,6 @@ const routes: Routes = [ @@ -181,11 +186,6 @@ const routes: Routes = [
loadChildren: async () =>
(await import("./settings/subscription-routing.module")).SubscriptionRoutingModule,
},
{
path: "create-organization",
component: CreateOrganizationComponent,
data: { titleId: "newOrganization" },
},
{
path: "emergency-access",
children: [

14
src/app/settings/create-organization.component.html

@ -1,5 +1,11 @@ @@ -1,5 +1,11 @@
<div class="page-header">
<h1>{{ "newOrganization" | i18n }}</h1>
<div class="container page-content">
<div class="row">
<div class="col-12">
<div class="page-header">
<h1>{{ "newOrganization" | i18n }}</h1>
</div>
<p>{{ "newOrganizationDesc" | i18n }}</p>
<app-organization-plans></app-organization-plans>
</div>
</div>
</div>
<p>{{ "newOrganizationDesc" | i18n }}</p>
<app-organization-plans></app-organization-plans>

2
src/app/vault/share.component.html

@ -77,7 +77,7 @@ @@ -77,7 +77,7 @@
</button>
<a
href="#"
routerLink="/settings/create-organization"
routerLink="/create-organization"
class="btn btn-primary"
*ngIf="!organizations || !organizations.length"
>

Loading…
Cancel
Save