[ui] Implement provider test button #49
This commit is contained in:
@@ -285,11 +285,15 @@ class Mount with ChangeNotifier {
|
||||
|
||||
Future<bool> test() async {
|
||||
try {
|
||||
final map = await convertAllToString(
|
||||
jsonDecode(jsonEncode(mountConfig.settings)),
|
||||
_auth.key,
|
||||
);
|
||||
final auth = await _auth.createAuth();
|
||||
final response = await http.get(
|
||||
Uri.parse(
|
||||
Uri.encodeFull(
|
||||
'${getBaseUri()}/api/v1/test?auth=$auth&name=$name&type=$type&config=${jsonEncode(mountConfig.settings)}',
|
||||
'${getBaseUri()}/api/v1/test?auth=$auth&name=$name&type=$type&config=${jsonEncode(map)}',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
Reference in New Issue
Block a user