mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
migrate cloud components
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { By } from '@angular/platform-browser';
|
||||
import { of } from 'rxjs';
|
||||
import { GroupCloudModule } from '../group-cloud.module';
|
||||
import { GroupCloudComponent } from './group-cloud.component';
|
||||
import { CoreTestingModule } from '@alfresco/adf-core';
|
||||
import { DebugElement, SimpleChange } from '@angular/core';
|
||||
@@ -72,7 +71,7 @@ describe('GroupCloudComponent', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [CoreTestingModule, GroupCloudModule, GroupCloudComponent]
|
||||
imports: [CoreTestingModule, GroupCloudComponent]
|
||||
});
|
||||
fixture = TestBed.createComponent(GroupCloudComponent);
|
||||
component = fixture.componentInstance;
|
||||
|
@@ -48,6 +48,7 @@ import { MatChipsModule } from '@angular/material/chips';
|
||||
import { MatInputModule } from '@angular/material/input';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { InitialGroupNamePipe } from '../pipe/group-initial.pipe';
|
||||
import { IdentityGroupService } from '../services/identity-group.service';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-cloud-group',
|
||||
@@ -66,6 +67,7 @@ import { InitialGroupNamePipe } from '../pipe/group-initial.pipe';
|
||||
MatButtonModule,
|
||||
InitialGroupNamePipe
|
||||
],
|
||||
providers: [{ provide: IDENTITY_GROUP_SERVICE_TOKEN, useExisting: IdentityGroupService }],
|
||||
templateUrl: './group-cloud.component.html',
|
||||
styleUrls: ['./group-cloud.component.scss'],
|
||||
animations: [
|
||||
|
@@ -17,13 +17,10 @@
|
||||
|
||||
import { NgModule } from '@angular/core';
|
||||
import { GroupCloudComponent } from './components/group-cloud.component';
|
||||
import { InitialGroupNamePipe } from './pipe/group-initial.pipe';
|
||||
import { IDENTITY_GROUP_SERVICE_TOKEN } from './services/identity-group-service.token';
|
||||
import { IdentityGroupService } from './services/identity-group.service';
|
||||
|
||||
/** @deprecated use GroupCloudComponent instead */
|
||||
@NgModule({
|
||||
imports: [GroupCloudComponent, InitialGroupNamePipe],
|
||||
providers: [{ provide: IDENTITY_GROUP_SERVICE_TOKEN, useExisting: IdentityGroupService }],
|
||||
exports: [GroupCloudComponent, InitialGroupNamePipe]
|
||||
imports: [GroupCloudComponent],
|
||||
exports: [GroupCloudComponent]
|
||||
})
|
||||
export class GroupCloudModule {}
|
||||
|
Reference in New Issue
Block a user