mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 04:21:06 +08:00
Revert changes to defaultExt
This commit is contained in:
parent
54571b2e8d
commit
2dd964bed7
1 changed files with 2 additions and 19 deletions
|
@ -1,29 +1,12 @@
|
|||
import {NgModule} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {HttpClientModule} from '@angular/common/http';
|
||||
import {UKPhoneEditFieldComponent} from './fields/uk-phone/templates/edit/uk-phone.component';
|
||||
import {UkPhoneEditFieldModule} from './fields/uk-phone/templates/edit/uk-phone.module';
|
||||
import {FieldRegistry} from 'core';
|
||||
|
||||
|
||||
@NgModule({
|
||||
declarations: [],
|
||||
imports: [
|
||||
CommonModule,
|
||||
HttpClientModule,
|
||||
UkPhoneEditFieldModule
|
||||
],
|
||||
imports: [],
|
||||
providers: []
|
||||
})
|
||||
export class ExtensionModule {
|
||||
constructor(
|
||||
protected fieldRegistry: FieldRegistry
|
||||
) {
|
||||
// Override the edit mode phone field component for all modules
|
||||
fieldRegistry.register('default', 'phone', 'edit', UKPhoneEditFieldComponent);
|
||||
|
||||
// Override the edit mode phone field component just for accounts
|
||||
// fieldRegistry.register('accounts', 'phone', 'edit', UKPhoneEditFieldComponent);
|
||||
constructor() {
|
||||
}
|
||||
|
||||
init(): void {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue