Skip to content

Commit

Permalink
Add: #195 - Changed the message on resetting the developer option for…
Browse files Browse the repository at this point in the history
… privacy dashboard
  • Loading branch information
josmilan authored and lijogeorgep committed Nov 15, 2023
1 parent a524ebb commit e43b4ac
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class PrivacyDashboardCredentialController extends BaseController {
final TextEditingController baseUrlController = TextEditingController();
final TextEditingController orgIdController = TextEditingController();
final TextEditingController userIdController = TextEditingController();

@override
void onInit() {
super.onInit();
Expand All @@ -27,8 +28,7 @@ class PrivacyDashboardCredentialController extends BaseController {
print('apikey now:$apiKey');
apiKey != null
? apiKeyController.text = apiKey
: apiKeyController.text =
PrivacyDashboard().apiKey;
: apiKeyController.text = PrivacyDashboard().apiKey;
orgId != null
? orgIdController.text = orgId
: orgIdController.text = "64f09f778e5f3800014a879a";
Expand Down Expand Up @@ -61,7 +61,8 @@ class PrivacyDashboardCredentialController extends BaseController {
_prefs.setString('privacyDashboarduserId', PrivacyDashboard().userId);
privacyDashboardCredentials();
Get.rawSnackbar(
message: 'Reset to default credentials',
message:
'Success : Please logout and login, also reopen the app to reflect the changes',
backgroundColor: Colors.green);
privacyDashboardCredentials();
}
Expand Down

0 comments on commit e43b4ac

Please sign in to comment.