Commit 8d9a18b5 authored by AllForNothing's avatar AllForNothing
Browse files

Update UI package to latest version


Signed-off-by: default avatarAllForNothing <sshijun@vmware.com>
parent 18f41bad
......@@ -21,7 +21,7 @@ export class ImmutableTagComponent implements OnInit {
editIndex: number;
loadingRule: boolean = false;
@ViewChild('addRule', { static: false }) addRuleComponent: AddRuleComponent;
@ViewChild('addRule') addRuleComponent: AddRuleComponent;
constructor(
private route: ActivatedRoute,
private immutableTagService: ImmutableTagService,
......
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { TagFeatureIntegrationComponent } from './tag-feature-integration.component';
import { RouterModule } from '@angular/router';
......@@ -9,7 +9,7 @@ describe('TagFeatureIntegrationComponent', () => {
let component: TagFeatureIntegrationComponent;
let fixture: ComponentFixture<TagFeatureIntegrationComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [ TagFeatureIntegrationComponent ],
imports: [ RouterModule, TranslateModule.forRoot(), RouterTestingModule ]
......
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { TranslateModule, TranslateService } from '@ngx-translate/core';
import { AddRuleComponent } from './add-rule.component';
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
......@@ -17,7 +17,7 @@ describe('AddRuleComponent', () => {
let fixture: ComponentFixture<AddRuleComponent>;
const mockTagRetentionService = { };
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
schemas: [
CUSTOM_ELEMENTS_SCHEMA
......
......@@ -41,7 +41,7 @@ export class AddRuleComponent implements OnInit, OnDestroy {
isAdd: boolean = true;
editRuleOrigin: Rule;
onGoing: boolean = false;
@ViewChild(InlineAlertComponent, { static: false }) inlineAlert: InlineAlertComponent;
@ViewChild(InlineAlertComponent) inlineAlert: InlineAlertComponent;
constructor(private tagRetentionService: TagRetentionService) {
}
......
......@@ -149,7 +149,7 @@
-
{{innerPagination.lastItem + 1 }} {{'ROBOT_ACCOUNT.OF' |
translate}} </span>
{{innerPagination.totalItems }} {{'ROBOT_ACCOUNT.ITEMS' | translate}}
{{ totalLogCount }} {{'ROBOT_ACCOUNT.ITEMS' | translate}}
<clr-dg-pagination [clrDgTotalItems]="totalLogCount" [(clrDgPage)]="currentLogPage" #innerPagination [clrDgPageSize]="logPageSize"></clr-dg-pagination>
</clr-dg-footer>
</clr-datagrid>
......@@ -160,7 +160,7 @@
-
{{pagination?.lastItem + 1 }} {{'ROBOT_ACCOUNT.OF' |
translate}} </span>
{{pagination.totalItems }} {{'ROBOT_ACCOUNT.ITEMS' | translate}}
{{ totalCount }} {{'ROBOT_ACCOUNT.ITEMS' | translate}}
<clr-dg-pagination [clrDgTotalItems]="totalCount" #pagination [(clrDgPage)]="currentPage" [clrDgPageSize]="pageSize"></clr-dg-pagination>
</clr-dg-footer>
</clr-datagrid>
......
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { TranslateModule, TranslateService } from '@ngx-translate/core';
import { TagRetentionComponent } from './tag-retention.component';
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
......@@ -58,7 +58,7 @@ describe('TagRetentionComponent', () => {
const mockErrorHandler = {
error: () => { }
};
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
schemas: [
CUSTOM_ELEMENTS_SCHEMA
......
......@@ -91,9 +91,9 @@ export class TagRetentionComponent implements OnInit {
totalLogCount: number = 0;
logPageSize: number = 5;
isDetailOpened: boolean = false;
@ViewChild('cronScheduleComponent', {static: false})
@ViewChild('cronScheduleComponent')
cronScheduleComponent: CronScheduleComponent;
@ViewChild('addRule', {static: false}) addRuleComponent: AddRuleComponent;
@ViewChild('addRule') addRuleComponent: AddRuleComponent;
constructor(
private route: ActivatedRoute,
private tagRetentionService: TagRetentionService,
......
......@@ -14,5 +14,5 @@
width: 7rem;
}
.clr-control-label {
width: 9rem !important;
width: 10rem !important;
}
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { TranslateModule, TranslateService } from '@ngx-translate/core';
import { AddWebhookFormComponent } from './add-webhook-form.component';
import { BrowserAnimationsModule, NoopAnimationsModule } from '@angular/platform-browser/animations';
......@@ -74,7 +74,7 @@ describe('AddWebhookFormComponent', () => {
]
};
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
BrowserAnimationsModule,
......
......@@ -32,7 +32,7 @@ export class AddWebhookFormComponent implements OnInit {
@Input() isOpen: boolean;
@Output() close = new EventEmitter<boolean>();
@ViewChild("webhookForm", { static: true }) currentForm: NgForm;
@ViewChild(InlineAlertComponent, { static: false }) inlineAlert: InlineAlertComponent;
@ViewChild(InlineAlertComponent) inlineAlert: InlineAlertComponent;
@Input()
metadata: any;
@Output() notify = new EventEmitter<Webhook>();
......
:host::ng-deep.modal-dialog {
width: 27rem;
width: 29rem;
}
\ No newline at end of file
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { TranslateModule, TranslateService } from '@ngx-translate/core';
import { AddWebhookComponent } from './add-webhook.component';
import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from '@angular/core';
......@@ -11,7 +11,7 @@ describe('AddWebhookComponent', () => {
let component: AddWebhookComponent;
let fixture: ComponentFixture<AddWebhookComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
schemas: [
CUSTOM_ELEMENTS_SCHEMA,
......
......@@ -24,7 +24,7 @@ export class AddWebhookComponent implements OnInit {
webhook: Webhook;
@Input()
metadata: any;
@ViewChild(AddWebhookFormComponent, { static: false })
@ViewChild(AddWebhookFormComponent)
addWebhookFormComponent: AddWebhookFormComponent;
@Output() notify = new EventEmitter<Webhook>();
......
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { TranslateModule, TranslateService } from '@ngx-translate/core';
import { WebhookComponent } from './webhook.component';
import { ActivatedRoute } from '@angular/router';
......@@ -101,7 +101,7 @@ describe('WebhookComponent', () => {
}
};
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
schemas: [
CUSTOM_ELEMENTS_SCHEMA
......
......@@ -35,11 +35,11 @@ import { ClrLoadingState } from '@clr/angular';
styleUrls: ['./webhook.component.scss']
})
export class WebhookComponent implements OnInit {
@ViewChild(AddWebhookComponent, { static: false } )
@ViewChild(AddWebhookComponent)
addWebhookComponent: AddWebhookComponent;
@ViewChild(AddWebhookFormComponent, { static: false })
@ViewChild(AddWebhookFormComponent)
addWebhookFormComponent: AddWebhookFormComponent;
@ViewChild("confirmationDialogComponent", { static: false })
@ViewChild("confirmationDialogComponent")
confirmationDialogComponent: ConfirmationDialogComponent;
lastTriggers: LastTrigger[] = [];
lastTriggerCount: number = 0;
......
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { TranslateModule, TranslateService } from '@ngx-translate/core';
import { DestinationPageComponent } from './destination-page.component';
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
......@@ -11,7 +11,7 @@ describe('DestinationPageComponent', () => {
let component: DestinationPageComponent;
let fixture: ComponentFixture<DestinationPageComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
schemas: [
CUSTOM_ELEMENTS_SCHEMA
......
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { TranslateModule, TranslateService } from '@ngx-translate/core';
import { ReplicationManagementComponent } from './replication-management.component';
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
......@@ -11,7 +11,7 @@ describe('ReplicationManagementComponent', () => {
let component: ReplicationManagementComponent;
let fixture: ComponentFixture<ReplicationManagementComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
schemas: [
CUSTOM_ELEMENTS_SCHEMA
......
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { TranslateModule, TranslateService } from '@ngx-translate/core';
import { ReplicationPageComponent } from './replication-page.component';
import { ActivatedRoute, Router } from '@angular/router';
......@@ -53,7 +53,7 @@ describe('ReplicationPageComponent', () => {
const mockRouter = {
navigate: () => { }
};
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
schemas: [
CUSTOM_ELEMENTS_SCHEMA
......
......@@ -26,7 +26,7 @@ import { ErrorHandler } from "../../lib/utils/error-handler";
})
export class ReplicationPageComponent implements OnInit, AfterViewInit {
projectIdentify: string | number;
@ViewChild("replicationView", {static: false}) replicationView: ReplicationComponent;
@ViewChild("replicationView") replicationView: ReplicationComponent;
projectName: string;
hasCreateReplicationPermission: boolean;
hasUpdateReplicationPermission: boolean;
......
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { TranslateModule, TranslateService } from '@ngx-translate/core';
import { TotalReplicationPageComponent } from './total-replication-page.component';
import {Router, ActivatedRoute} from "@angular/router";
......@@ -29,7 +29,7 @@ describe('TotalReplicationPageComponent', () => {
navigate: () => { }
};
const mockActivatedRoute = null;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
schemas: [
CUSTOM_ELEMENTS_SCHEMA
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment