Skip to content
Snippets Groups Projects
Commit 10c521e9 authored by kbeyro's avatar kbeyro
Browse files

small sonar fixes

parent 9024fd29
No related branches found
No related tags found
No related merge requests found
Showing
with 11 additions and 17 deletions
......@@ -132,7 +132,6 @@ export class AppManagementListComponent implements OnInit {
public getApplicationInfoJSON(id: number) {
this.appsService.getApplicationDTO(id).subscribe( appDTO => {
// const app = appDTO;
appDTO = this.deleteIDsFields(appDTO);
let blob = new Blob([JSON.stringify(appDTO, null, 4)], {type: 'application/json'})
this.blobUrl = window.URL.createObjectURL(blob);
......
......@@ -15,7 +15,7 @@ import {UntypedFormControl, ValidatorFn} from '@angular/forms';
templateUrl: './app-static-global-deploy-parameters-edit.component.html',
styleUrls: ['./app-static-global-deploy-parameters-edit.component.css']
})
export class AppStaticGlobalDeployParametersEditComponent implements OnInit, AfterViewInit {
export class AppStaticGlobalDeployParametersEditComponent implements OnInit {
@Input()
public appDeploymentSpec: AppDeploymentSpec = undefined;
......@@ -62,9 +62,7 @@ export class AppStaticGlobalDeployParametersEditComponent implements OnInit, Aft
if (this.valueValidator) {
this.newValueFormControl.setValidators(this.valueValidator);
}
}
ngAfterViewInit(): void {}
}ra
public isNewDeployParamValid(): boolean {
this.newKey = this.newKeyFormControl.value;
......
......@@ -6,7 +6,7 @@ import { Observable } from 'rxjs';
@Component({
selector: 'app-domain-annotations',
templateUrl: './domain-annotations.component.html',
styleUrls: ['./domain-annotations.component.css']
styleUrls: []
})
export class DomainAnnotationsComponent implements OnInit {
......
......@@ -56,7 +56,7 @@
<tr class="table-row">
<td style="width: 40%" >{{user.username}}</td>
<td style="width: 40%" >{{user.firstname}} {{user.lastname}}</td>
<td style="" class="flex justify-content-end">
<td class="flex justify-content-end">
<div class="flex">
<button *roles="['ROLE_SYSTEM_ADMIN']" type="button" class="btn btn-danger" (click)="deleteUserAccess(user)">{{'DOMAINS.GROUP.DELETE_USER' | translate}}</button>
</div>
......
......@@ -10,7 +10,7 @@
</div>
<div *roles="['ROLE_SYSTEM_ADMIN']" class="flex" style="align-content: center; height: 35px; margin-top: 8px;">
<span style="align-content: center; margin-right: 5px; margin-top: 10px;"> {{'DOMAINS.NOTACTIVE' | translate}}</span>
<p-checkbox id="showNotActive" [binary]="true" [(ngModel)]=" showNotActive" class="flex align-content-start" style=""></p-checkbox>
<p-checkbox id="showNotActive" [binary]="true" [(ngModel)]=" showNotActive" class="flex align-content-start" ></p-checkbox>
</div>
<div class="flex align-content-center" style="align-content: center; height: 35px; margin-top: 8px;">
<p class="flex align-content-center" style="margin-top: 10px;">{{ 'DOMAINS.ITEMS_PER_PAGE' | translate }}:</p>
......
......@@ -42,6 +42,7 @@ export class CommentsComponent implements OnInit, OnChanges {
}
ngOnChanges(changes: SimpleChanges): void {
this.refresh();
}
ngOnInit() {
......
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
import {KeyValue} from '../../model/key-value';
import { Observable, of } from 'rxjs';
import { AnonymousSubject } from 'rxjs/internal/Subject';
@Component({
selector: 'app-domain-namespace-annotations',
......@@ -20,7 +19,7 @@ export class DomainNamespaceAnnotationsComponent implements OnInit {
public annotations: EventEmitter<KeyValue[]> = new EventEmitter<KeyValue[]>();
@Output()
public trigerDelete: EventEmitter<String> = new EventEmitter<String>();
public trigerDelete: EventEmitter<string> = new EventEmitter<string>();
public keyValue: KeyValue[] = []
......@@ -29,10 +28,7 @@ export class DomainNamespaceAnnotationsComponent implements OnInit {
public isKeysUnique = true;
public isKeyValuePresent =true;
public reaOnlyMap = new Map<String, boolean>();
constructor() {
}
public reaOnlyMap = new Map<string, boolean>();
ngOnInit(): void {
console.warn("annotations", this.annotationRead)
......
......@@ -6,7 +6,7 @@ import {Rate} from '../../model';
@Component({
selector: 'rate',
templateUrl: './rate.component.html',
styleUrls: ['./rate.component.css', '../rating-extended/rating-extended.component.css'],
styleUrls: ['../rating-extended/rating-extended.component.css'],
encapsulation: ViewEncapsulation.None,
})
export class RateComponent implements OnInit, OnChanges {
......
......@@ -52,7 +52,7 @@ import {SshKeysComponent} from './users/ssh-keys/ssh-keys.component';
import {NewSshKeyComponent} from './users/new-ssh-key/new-ssh-key.component';
import {ModalProvideSshKeyComponent} from './modal/modal-provide-ssh-key/modal-provide-ssh-key.component';
import { ContactComponent } from './contact/contact.component';
import {FormioAppConfig, FormioModule} from '@formio/angular';
import {FormioModule} from '@formio/angular';
import { PreferencesComponent } from './users/preferences/preferences.component';
import {TooltipModule} from 'primeng/tooltip';
import {DropdownModule} from 'primeng/dropdown';
......
......@@ -15,7 +15,7 @@ import {Observable} from 'rxjs/internal/Observable';
@Component({
selector: 'app-terms-acceptance',
templateUrl: './terms-acceptance.component.html',
styleUrls: ['./terms-acceptance.component.css'],
styleUrls: [],
})
export class TermsAcceptanceComponent extends BaseComponent implements OnInit {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment