Skip to content

Commit

Permalink
Fixes #32
Browse files Browse the repository at this point in the history
  • Loading branch information
ligreman committed Mar 19, 2023
1 parent f5b4bb0 commit 5f7e547
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class DialogNewServiceComponent implements OnInit, OnDestroy {
protocol: ['', [Validators.required, CustomValidators.isProtocol(this.validProtocols)]],
host: ['', [Validators.required, CustomValidators.isHost()]],
port: ['', [Validators.required, CustomValidators.isNumber(), Validators.min(0), Validators.max(65535)]],
path: ['/', [Validators.pattern(/^\//), Validators.required]],
path: ['/', [Validators.pattern(/^\//)]],
enabled: [true],
retries: [5, [CustomValidators.isNumber(), Validators.min(0), Validators.max(32767)]],
connect_timeout: [60000, [CustomValidators.isNumber(), Validators.min(1), Validators.max(2147483646)]],
Expand Down
7 changes: 6 additions & 1 deletion src/app/routes/architect/architect.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,10 +400,15 @@ export class ArchitectComponent implements OnInit, OnDestroy, AfterViewInit {
// Recorro los servicios creando los nodos de servicios
for (let service of data.services) {
const scolor = service.enabled ? '#CCCCCC' : '#E53935';
let sLabel = service.name + '\n' + service.protocol + '://' + service.host + ':' + service.port;
if (service.path && service.path !== '') {
sLabel += service.path;
}

// Nodos de Servicio
this.data.nodes.add({
id: service.id,
label: service.name + '\n' + service.protocol + '://' + service.host + ':' + service.port + service.path,
label: sLabel,
title: this.translate.instant('service.label') + ': ' + service.id + '\n' + this.translate.instant('architect.labels') + ': ' + joiner(service.tags, ', '),
group: 'service',
x: 450,
Expand Down

0 comments on commit 5f7e547

Please sign in to comment.