UI: Fixed overflow list on button click
This commit is contained in:
parent
90d945cb2c
commit
5fe6fcce95
@ -327,7 +327,7 @@ export class AssetProfileAutocompleteComponent implements ControlValueAccessor,
|
|||||||
}
|
}
|
||||||
|
|
||||||
createAssetProfile($event: Event, profileName: string) {
|
createAssetProfile($event: Event, profileName: string) {
|
||||||
$event.preventDefault();
|
$event.stopPropagation();
|
||||||
const assetProfile: AssetProfile = {
|
const assetProfile: AssetProfile = {
|
||||||
name: profileName
|
name: profileName
|
||||||
} as AssetProfile;
|
} as AssetProfile;
|
||||||
@ -337,7 +337,7 @@ export class AssetProfileAutocompleteComponent implements ControlValueAccessor,
|
|||||||
}
|
}
|
||||||
|
|
||||||
editAssetProfile($event: Event) {
|
editAssetProfile($event: Event) {
|
||||||
$event.preventDefault();
|
$event.stopPropagation();
|
||||||
this.assetProfileService.getAssetProfile(this.modelValue.id).subscribe(
|
this.assetProfileService.getAssetProfile(this.modelValue.id).subscribe(
|
||||||
(assetProfile) => {
|
(assetProfile) => {
|
||||||
this.openAssetProfileDialog(assetProfile, false);
|
this.openAssetProfileDialog(assetProfile, false);
|
||||||
|
|||||||
@ -349,7 +349,7 @@ export class DeviceProfileAutocompleteComponent implements ControlValueAccessor,
|
|||||||
}
|
}
|
||||||
|
|
||||||
createDeviceProfile($event: Event, profileName: string) {
|
createDeviceProfile($event: Event, profileName: string) {
|
||||||
$event.preventDefault();
|
$event.stopPropagation();
|
||||||
const deviceProfile: DeviceProfile = {
|
const deviceProfile: DeviceProfile = {
|
||||||
name: profileName,
|
name: profileName,
|
||||||
transportType: this.transportType
|
transportType: this.transportType
|
||||||
@ -360,7 +360,7 @@ export class DeviceProfileAutocompleteComponent implements ControlValueAccessor,
|
|||||||
}
|
}
|
||||||
|
|
||||||
editDeviceProfile($event: Event) {
|
editDeviceProfile($event: Event) {
|
||||||
$event.preventDefault();
|
$event.stopPropagation();
|
||||||
this.deviceProfileService.getDeviceProfile(this.modelValue.id).subscribe(
|
this.deviceProfileService.getDeviceProfile(this.modelValue.id).subscribe(
|
||||||
(deviceProfile) => {
|
(deviceProfile) => {
|
||||||
this.openDeviceProfileDialog(deviceProfile, false);
|
this.openDeviceProfileDialog(deviceProfile, false);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user