Make appId Assignable only once

This commit is contained in:
Praveen Kumar
2024-10-20 21:46:13 +05:30
parent 5e0333c4c8
commit c1c06b3f9c
2 changed files with 16 additions and 1 deletions

View File

@@ -538,6 +538,22 @@ class AddAppPageState extends State<AddAppPage> {
});
}
}),
if (pickedSource != null)
GeneratedForm(
key: const Key('appId'),
items: [
[
GeneratedFormTextField('appId',
label: tr('appId'), required: false),
]
],
onValueChanges: (values, valid, isBuilding) {
if (!isBuilding) {
setState(() {
additionalSettings['appId'] = values['appId'];
});
}
}),
],
);