Browse Source
Merge pull request #11272 from ArtemDzhereleiko/AD/bug-fix/autocomplete-list-overflow
Fixed overlapping dialog window by autocomplete list
pull/11294/head
Igor Kulikov
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
4 additions and
4 deletions
-
ui-ngx/src/app/modules/home/components/profile/asset-profile-autocomplete.component.ts
-
ui-ngx/src/app/modules/home/components/profile/device-profile-autocomplete.component.ts
|
|
|
@ -327,7 +327,7 @@ export class AssetProfileAutocompleteComponent implements ControlValueAccessor, |
|
|
|
} |
|
|
|
|
|
|
|
createAssetProfile($event: Event, profileName: string) { |
|
|
|
$event.preventDefault(); |
|
|
|
$event.stopPropagation(); |
|
|
|
const assetProfile: AssetProfile = { |
|
|
|
name: profileName |
|
|
|
} as AssetProfile; |
|
|
|
@ -337,7 +337,7 @@ export class AssetProfileAutocompleteComponent implements ControlValueAccessor, |
|
|
|
} |
|
|
|
|
|
|
|
editAssetProfile($event: Event) { |
|
|
|
$event.preventDefault(); |
|
|
|
$event.stopPropagation(); |
|
|
|
this.assetProfileService.getAssetProfile(this.modelValue.id).subscribe( |
|
|
|
(assetProfile) => { |
|
|
|
this.openAssetProfileDialog(assetProfile, false); |
|
|
|
|
|
|
|
@ -349,7 +349,7 @@ export class DeviceProfileAutocompleteComponent implements ControlValueAccessor, |
|
|
|
} |
|
|
|
|
|
|
|
createDeviceProfile($event: Event, profileName: string) { |
|
|
|
$event.preventDefault(); |
|
|
|
$event.stopPropagation(); |
|
|
|
const deviceProfile: DeviceProfile = { |
|
|
|
name: profileName, |
|
|
|
transportType: this.transportType |
|
|
|
@ -360,7 +360,7 @@ export class DeviceProfileAutocompleteComponent implements ControlValueAccessor, |
|
|
|
} |
|
|
|
|
|
|
|
editDeviceProfile($event: Event) { |
|
|
|
$event.preventDefault(); |
|
|
|
$event.stopPropagation(); |
|
|
|
this.deviceProfileService.getDeviceProfile(this.modelValue.id).subscribe( |
|
|
|
(deviceProfile) => { |
|
|
|
this.openDeviceProfileDialog(deviceProfile, false); |
|
|
|
|