Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit dd7fec73 authored by Joze RIHTARSIC's avatar Joze RIHTARSIC
Browse files

Fix idnex and upd. columns

parent 6754120e
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,8 @@ export class SearchTableComponent implements OnInit {
name: 'Index',
width: 30,
maxWidth: 80,
sortable: false
sortable: false,
showInitially: false
};
this.columnActions = {
......@@ -102,7 +103,8 @@ export class SearchTableComponent implements OnInit {
name: 'Upd.',
width: 40,
maxWidth: 50,
sortable: false
sortable: false,
showInitially: false
};
}
......@@ -113,24 +115,25 @@ export class SearchTableComponent implements OnInit {
// prepend columns
if (!!this.tableRowDetailContainer) {
console.log("show table row details!")
this.columnExpandDetails.showInitially = true
this.columnPicker.allColumns.unshift(this.columnExpandDetails);
this.columnPicker.selectedColumns.unshift(this.columnExpandDetails);
}
if (this.showIndexColumn) {
console.log("show table index!")
this.columnIndex.showInitially = true
this.columnPicker.allColumns.unshift(this.columnIndex);
this.columnPicker.selectedColumns.unshift(this.columnIndex);
}
if (this.showActionButtons) {
console.log("show action buttons!")
this.columnActions.showInitially = true
this.columnPicker.allColumns.push(this.columnActions);
this.columnPicker.selectedColumns.push(this.columnActions);
}
this.columnPicker.selectedColumns = this.columnPicker.allColumns.filter(col => col.showInitially);
} else {
console.log("Column picker is not registered for the table!")
}
this.columnPicker.selectedColumns = this.columnPicker.allColumns.filter(col => col.showInitially);
}
getRowClass(row) {
......
......@@ -23,12 +23,7 @@
</mat-form-field>
<mat-form-field style="width:100%">
<input *ngIf="lookups.cachedApplicationConfig.partyIDSchemeMandatory else notRequired"
matInput placeholder="Participant scheme" name="participantScheme"
id="participantSchemeMandatory_id"
[formControl]="dialogForm.controls['participantScheme']"
maxlength="255" required>
<input #notRequired
<input
matInput placeholder="Participant scheme" name="participantScheme"
id="participantScheme_id"
[formControl]="dialogForm.controls['participantScheme']"
......
......@@ -8,7 +8,6 @@ import {HttpClient} from '@angular/common/http';
import {SmpConstants} from "../smp.constants";
import {GlobalLookups} from "../common/global-lookups";
import {SearchTableComponent} from "../common/search-table/search-table.component";
import {ServiceGroupEditController} from "../service-group-edit/service-group-edit-controller";
@Component({
moduleId: module.id,
......@@ -17,8 +16,8 @@ import {ServiceGroupEditController} from "../service-group-edit/service-group-ed
})
export class ServiceGroupSearchComponent implements OnInit, AfterViewInit {
@ViewChild('rowSMPUrlLinkAction', { static: true }) rowSMPUrlLinkAction: TemplateRef<any>
@ViewChild('rowActions', { static: true }) rowActions: TemplateRef<any>;
@ViewChild('rowSMPUrlLinkAction', {static: true}) rowSMPUrlLinkAction: TemplateRef<any>
@ViewChild('rowActions', {static: true}) rowActions: TemplateRef<any>;
@ViewChild('searchTable', {static: true}) searchTable: SearchTableComponent;
columnPicker: ColumnPicker = new ColumnPicker();
......@@ -78,16 +77,16 @@ export class ServiceGroupSearchComponent implements OnInit, AfterViewInit {
this.columnPicker.selectedColumns = this.columnPicker.allColumns.filter(col => col.showInitially);
}
ngAfterViewInit(): void {
ngAfterViewInit() {
this.searchTable.tableColumnInit();
}
createServiceGroupURL(row: any){
return encodeURIComponent((!row.participantScheme? '' : row.participantScheme)+'::'+row.participantIdentifier);
createServiceGroupURL(row: any) {
return encodeURIComponent((!row.participantScheme ? '' : row.participantScheme) + '::' + row.participantIdentifier);
}
createServiceMetadataURL(row: any, rowSMD: any){
return encodeURIComponent((!row.participantScheme? '': row.participantScheme)+'::'+row.participantIdentifier)+'/services/'+ encodeURIComponent((!rowSMD.documentIdentifierScheme?'':rowSMD.documentIdentifierScheme)+'::'+rowSMD.documentIdentifier);
createServiceMetadataURL(row: any, rowSMD: any) {
return encodeURIComponent((!row.participantScheme ? '' : row.participantScheme) + '::' + row.participantIdentifier) + '/services/' + encodeURIComponent((!rowSMD.documentIdentifierScheme ? '' : rowSMD.documentIdentifierScheme) + '::' + rowSMD.documentIdentifier);
}
details(row: any) {
......
......@@ -34,6 +34,4 @@ public class ExamplePayloadValidatorSpiImpl implements PayloadValidatorSpi {
throw new PayloadValidatorSpiException("Can not read payload", e);
}
}
;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment