This commit is contained in:
phil 2025-06-28 03:58:17 +02:00
parent 4c4dc3fc5c
commit bbffcd5aed
10 changed files with 116 additions and 119 deletions

View file

@ -12,14 +12,13 @@ export interface DialogData {
@Component({
selector: 'gisaf-admin-access-role-dialog',
templateUrl: 'role-dialog.component.html',
styleUrls: ['role-dialog.component.css'],
})
export class GisafAdminAccessRoleDialogComponent implements OnInit {
formGroup: UntypedFormGroup = new UntypedFormGroup({})
constructor(
public dialogRef: MatDialogRef<GisafAdminAccessRoleDialogComponent>,
@Inject(MAT_DIALOG_DATA) public data: DialogData
) {}
) { }
ngOnInit() {
let role: Role = this.data['role'] || new Role(undefined, '', '')

View file

@ -7,7 +7,6 @@ import { AdminManageDataService } from '../data.service'
@Component({
selector: 'gisaf-admin-maintenance',
templateUrl: './maintenance.component.html',
styleUrls: ['./maintenance.component.css'],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class AdminMaintenanceComponent implements OnInit {

View file

@ -4,6 +4,5 @@ import { Component } from '@angular/core'
@Component({
selector: 'gisaf-info-home',
templateUrl: './info-home.component.html',
styleUrls: ['./info-home.component.css']
})
export class InfoHomeComponent {}
export class InfoHomeComponent { }

View file

@ -1,5 +1,7 @@
import { Component, Input,
ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'
import {
Component, Input,
ChangeDetectionStrategy, ChangeDetectorRef
} from '@angular/core'
import { Tag } from './tags.service'
import { FullInfo, InfoDataService, FormField } from '../info-data.service'
@ -12,7 +14,6 @@ import { MapControlService } from '../../map/map-control.service'
@Component({
selector: 'gisaf-tag-action',
templateUrl: './tag-action.component.html',
styleUrls: ['./tag-action.component.css'],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class TagActionComponent {
@ -25,7 +26,7 @@ export class TagActionComponent {
public authenticationService: AuthenticationService,
protected mapControlService: MapControlService,
private cdr: ChangeDetectorRef,
) {}
) { }
execute() {
this.actionsService.execute(
@ -38,7 +39,7 @@ export class TagActionComponent {
// Update the tags in the info source
let result = results[0].actionResults[0]
if (result.message) {
this.snackBar.open(result.message, 'Close', {duration: 3000})
this.snackBar.open(result.message, 'Close', { duration: 3000 })
}
if (!result.actionResults || result.actionResults.length == 0) {
return
@ -46,7 +47,7 @@ export class TagActionComponent {
let layer = result.actionResults[0].taggedLayers.find(
tl => tl.store == this.source.modelInfo.store
)
let feature = layer.features.find(f=>f.id == this.source.featureInfo.id)
let feature = layer.features.find(f => f.id == this.source.featureInfo.id)
if (feature) {
feature.tags.forEach(
tag => {
@ -57,7 +58,7 @@ export class TagActionComponent {
this.infoDataService.dataProviderService.next(this.source)
}
else {
this.source.featureInfo.tags.push({key: tag.key, value: tag.value})
this.source.featureInfo.tags.push({ key: tag.key, value: tag.value })
}
}
)

View file

@ -8,7 +8,6 @@ import { Downloader } from '../../openapi'
@Component({
selector: 'gisaf-downloader',
templateUrl: './downloader.component.html',
styleUrls: ['./downloader.component.css']
})
export class DownloaderComponent implements OnInit {
@Input() source: FullInfo
@ -16,7 +15,7 @@ export class DownloaderComponent implements OnInit {
constructor(
private snackBar: MatSnackBar,
) {}
) { }
ngOnInit() {
}