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'];
});
}
}),
],
);

View File

@@ -572,7 +572,6 @@ abstract class AppSource {
label: tr('skipUpdateNotifications'))
],
[GeneratedFormTextField('about', label: tr('about'), required: false)],
[GeneratedFormTextField('appId', label: tr('appId'), required: false)]
];
// Previous 2 variables combined into one at runtime for convenient usage