|
|
@ -528,7 +528,7 @@ export class GfAssetProfileDialogComponent implements OnInit { |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
confirmType: ConfirmationDialogType.Primary, |
|
|
confirmType: ConfirmationDialogType.Primary, |
|
|
title: $localize`Do you really want to convert this asset profile to ${DataSource.MANUAL}?` |
|
|
title: $localize`Do you really want to convert this asset profile to ${DataSource.MANUAL} data source?` |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -768,6 +768,8 @@ export class GfAssetProfileDialogComponent implements OnInit { |
|
|
.pipe( |
|
|
.pipe( |
|
|
catchError((error: HttpErrorResponse) => { |
|
|
catchError((error: HttpErrorResponse) => { |
|
|
if (error.status === StatusCodes.CONFLICT) { |
|
|
if (error.status === StatusCodes.CONFLICT) { |
|
|
|
|
|
// TODO: Ask if the user wants to merge the two asset profiles
|
|
|
|
|
|
|
|
|
this.snackBar.open( |
|
|
this.snackBar.open( |
|
|
$localize`${assetProfileIdentifier.symbol} (${assetProfileIdentifier.dataSource}) is already in use.`, |
|
|
$localize`${assetProfileIdentifier.symbol} (${assetProfileIdentifier.dataSource}) is already in use.`, |
|
|
undefined, |
|
|
undefined, |
|
|
|