add extensions to provider

pull/18083/head
Sinan Öztürk 2 years ago
parent 449183e97d
commit 72ee029172

@ -17,6 +17,7 @@ import { ResetPasswordComponent } from './components/reset-password/reset-passwo
import { RE_LOGIN_CONFIRMATION_TOKEN } from './tokens'; import { RE_LOGIN_CONFIRMATION_TOKEN } from './tokens';
import { UiExtensionsModule } from '@abp/ng.theme.shared/extensions'; import { UiExtensionsModule } from '@abp/ng.theme.shared/extensions';
import { ACCOUNT_EDIT_FORM_PROP_CONTRIBUTORS } from './tokens/extensions.token'; import { ACCOUNT_EDIT_FORM_PROP_CONTRIBUTORS } from './tokens/extensions.token';
import { AccountExtensionsGuard } from './guards';
import { PersonalSettingsHalfRowComponent } from './components/personal-settings/personal-settings-half-row.component'; import { PersonalSettingsHalfRowComponent } from './components/personal-settings/personal-settings-half-row.component';
const declarations = [ const declarations = [
@ -61,6 +62,7 @@ export class AccountModule {
provide: ACCOUNT_EDIT_FORM_PROP_CONTRIBUTORS, provide: ACCOUNT_EDIT_FORM_PROP_CONTRIBUTORS,
useValue: options.editFormPropContributors, useValue: options.editFormPropContributors,
}, },
AccountExtensionsGuard
], ],
}; };
} }

@ -7,6 +7,7 @@ import { NgbDropdownModule, NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
import { NgxValidateCoreModule } from '@ngx-validate/core'; import { NgxValidateCoreModule } from '@ngx-validate/core';
import { RolesComponent } from './components/roles/roles.component'; import { RolesComponent } from './components/roles/roles.component';
import { UsersComponent } from './components/users/users.component'; import { UsersComponent } from './components/users/users.component';
import { IdentityExtensionsGuard } from './guards';
import { IdentityRoutingModule } from './identity-routing.module'; import { IdentityRoutingModule } from './identity-routing.module';
import { IdentityConfigOptions } from './models/config-options'; import { IdentityConfigOptions } from './models/config-options';
import { import {
@ -58,6 +59,7 @@ export class IdentityModule {
provide: IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS, provide: IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS,
useValue: options.editFormPropContributors, useValue: options.editFormPropContributors,
}, },
IdentityExtensionsGuard
], ],
}; };
} }

@ -8,6 +8,7 @@ import { NgxValidateCoreModule } from '@ngx-validate/core';
import { TenantsComponent } from './components/tenants/tenants.component'; import { TenantsComponent } from './components/tenants/tenants.component';
import { TenantManagementConfigOptions } from './models/config-options'; import { TenantManagementConfigOptions } from './models/config-options';
import { TenantManagementRoutingModule } from './tenant-management-routing.module'; import { TenantManagementRoutingModule } from './tenant-management-routing.module';
import { TenantManagementExtensionsGuard } from './guards';
import { import {
TENANT_MANAGEMENT_CREATE_FORM_PROP_CONTRIBUTORS, TENANT_MANAGEMENT_CREATE_FORM_PROP_CONTRIBUTORS,
TENANT_MANAGEMENT_EDIT_FORM_PROP_CONTRIBUTORS, TENANT_MANAGEMENT_EDIT_FORM_PROP_CONTRIBUTORS,
@ -58,6 +59,7 @@ export class TenantManagementModule {
provide: TENANT_MANAGEMENT_EDIT_FORM_PROP_CONTRIBUTORS, provide: TENANT_MANAGEMENT_EDIT_FORM_PROP_CONTRIBUTORS,
useValue: options.editFormPropContributors, useValue: options.editFormPropContributors,
}, },
TenantManagementExtensionsGuard
], ],
}; };
} }

Loading…
Cancel
Save