Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,10 @@ Future<void> _handleSubmit(
final uri = Uri.parse(url);
final enrolmentResponse = await proxyApi.startEnrollment(uri, requestData);
if (!enrolmentResponse.user.enrolled) {
toaster.showError(message: "Only enrolled users can add devices.");
toaster.showError(
message:
"Enrol via the Defguard Desktop App first to add mobile devices.",
);
return;
}
final instanceId = enrolmentResponse.instance.id;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ class AddInstanceQrScreen extends HookConsumerWidget {
);
if (!registrationResponse.user.enrolled) {
toaster.showError(
message: "Only enrolled users can add devices.",
message:
"Enrol via the Defguard Desktop App first to add mobile devices.",
);
isLoading.value = false;
await controller.resume();
Expand Down
Loading