Commit cf84dee9 authored by Jan Marchel's avatar Jan Marchel
Browse files

deleting one of buttons

parent 3a5bccaf
Pipeline #18847 failed with stages
in 4 minutes and 41 seconds
<mat-spinner [diameter]="150" *ngIf="ufCreatorRedirectionInProgress"></mat-spinner>
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { UfCreatorViewComponent } from './uf-creator-view.component';
describe('UfCreatorViewComponent', () => {
let component: UfCreatorViewComponent;
let fixture: ComponentFixture<UfCreatorViewComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ UfCreatorViewComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(UfCreatorViewComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
import {AppConfigService} from '../../app-config/service/app-config.service';
import {Router} from '@angular/router';
@Component({
selector: 'app-uf-creator-view',
templateUrl: './uf-creator-view.component.html',
styleUrls: ['./uf-creator-view.component.css']
})
export class UfCreatorViewComponent implements OnInit {
private ufcreatorUrl = `${AppConfigService.settings.ufcreatorUrl}/`;
ufCreatorRedirectionInProgress = false;
constructor(private router: Router) {
}
ngOnInit() {
localStorage.setItem('viewTitle', 'Process');
this.ufCreatorRedirectionInProgress = true;
window.open(this.ufcreatorUrl);
this.router.navigate(['/']);
}
}
......@@ -174,8 +174,9 @@ export class UploaderXmiComponent implements OnInit {
this.menuComponent.unblockUIView();
}
onUfCreatorClick() {
this.router.navigate(['/deploying/ufcreator']);
onComponentsLogsClick() {
console.log(`Click for Kibana redirection`);
window.open(AppConfigService.settings.ufcreatorUrl);
}
}
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