Skip to content

Commit caf8609

Browse files
committed
refactor: rename ccsync variables to sync in TaskChampion creds controller and view
1 parent f058b4a commit caf8609

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

lib/app/modules/manage_task_champion_creds/controllers/manage_task_champion_creds_controller.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import 'package:http/http.dart' as http;
1111
class ManageTaskChampionCredsController extends GetxController {
1212
final encryptionSecretController = TextEditingController();
1313
final clientIdController = TextEditingController();
14-
final ccsyncBackendUrlController = TextEditingController();
14+
final syncBackendUrlController = TextEditingController();
1515
var profilesWidget = Get.find<SplashController>();
1616
RxBool isCheckingCreds = false.obs;
1717
RxBool taskReplica = false.obs;
@@ -25,7 +25,7 @@ class ManageTaskChampionCredsController extends GetxController {
2525
encryptionSecretController.text =
2626
await CredentialsStorage.getEncryptionSecret() ?? '';
2727
clientIdController.text = await CredentialsStorage.getClientId() ?? '';
28-
ccsyncBackendUrlController.text =
28+
syncBackendUrlController.text =
2929
await CredentialsStorage.getApiUrl() ?? '';
3030
final SharedPreferences prefs = await SharedPreferences.getInstance();
3131
taskReplica.value = prefs.getBool('settings_taskr_repl') ?? false;
@@ -37,11 +37,11 @@ class ManageTaskChampionCredsController extends GetxController {
3737
profilesWidget.currentProfile.value,
3838
clientIdController.text,
3939
encryptionSecretController.text,
40-
ccsyncBackendUrlController.text);
40+
syncBackendUrlController.text);
4141
return 0;
4242
}
4343
isCheckingCreds.value = true;
44-
String baseUrl = ccsyncBackendUrlController.text;
44+
String baseUrl = syncBackendUrlController.text;
4545
String uuid = clientIdController.text;
4646
String encryptionSecret = encryptionSecretController.text;
4747
try {
@@ -60,7 +60,7 @@ class ManageTaskChampionCredsController extends GetxController {
6060
profilesWidget.currentProfile.value,
6161
clientIdController.text,
6262
encryptionSecretController.text,
63-
ccsyncBackendUrlController.text);
63+
syncBackendUrlController.text);
6464

6565
isCheckingCreds.value = false;
6666
return 0;
@@ -78,7 +78,7 @@ class ManageTaskChampionCredsController extends GetxController {
7878
void onClose() {
7979
encryptionSecretController.dispose();
8080
clientIdController.dispose();
81-
ccsyncBackendUrlController.dispose();
81+
syncBackendUrlController.dispose();
8282
super.onClose();
8383
}
8484
}

lib/app/modules/manage_task_champion_creds/views/manage_task_champion_creds_view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class ManageTaskChampionCredsView
9595
const SizedBox(height: 10),
9696
Obx(() => TextField(
9797
style: TextStyle(color: tColors.primaryTextColor),
98-
controller: controller.ccsyncBackendUrlController,
98+
controller: controller.syncBackendUrlController,
9999
decoration: InputDecoration(
100100
labelText: controller.taskReplica.value
101101
? SentenceManager(

0 commit comments

Comments
 (0)