Skip to content

Commit

Permalink
Fix #1108 - Add information message on creation and update to inform …
Browse files Browse the repository at this point in the history
…that changes might take some minutes to be visible on page lists
  • Loading branch information
kbeaugrand committed Aug 24, 2022
1 parent 0183f83 commit 6956b0e
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 3,232 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public void ClickOnSaveShouldPutEdgeDeviceDetails()
mockIoTEdgeDevice.DeviceId.Equals(device.DeviceId, StringComparison.Ordinal))))
.Returns(Task.CompletedTask);

_ = this.mockSnackbarService.Setup(c => c.Add($"Device {this.mockdeviceId} has been successfully updated!", Severity.Success, null)).Returns((Snackbar)null);
_ = this.mockSnackbarService.Setup(c => c.Add($"Device {this.mockdeviceId} has been successfully updated!\r\nPlease note that changes might take some minutes to be visible in the list...", Severity.Success, null)).Returns((Snackbar)null);

var cut = RenderComponent<EdgeDeviceDetailPage>(ComponentParameter.CreateParameter("deviceId", this.mockdeviceId));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@
}

// Prompts a snack bar to inform the action was successful
Snackbar.Add($"Device {Device.DeviceID} has been successfully created!", Severity.Success);
Snackbar.Add($"Device {Device.DeviceID} has been successfully created!\r\nPlease note that changes might take some minutes to be visible in the list...", Severity.Success);

ProcessPostDeviceCreation();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@
}

// Prompts a snack bar to inform the action was successful
Snackbar.Add($"Device {Device.DeviceName} has been successfully updated!", Severity.Success, null);
Snackbar.Add($"Device {Device.DeviceName} has been successfully updated!\r\nPlease note that changes might take some minutes to be visible in the list...", Severity.Success, null);

NavManager.NavigateTo("devices");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
processingSave = true;
await EdgeDeviceClientService.CreateDevice(gateway);

Snackbar.Add("Device has been successfully created !", Severity.Success);
Snackbar.Add("Device has been successfully created!\r\nPlease note that changes might take some minutes to be visible in the list...", Severity.Success);
MudDialog.Close(DialogResult.Ok(true));
}
catch (ProblemDetailsException exception)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
{
await EdgeDeviceClientService.UpdateDevice(edgeDevice);

Snackbar.Add($"Device {edgeDevice.DeviceId} has been successfully updated!", Severity.Success);
Snackbar.Add($"Device {edgeDevice.DeviceId} has been successfully updated!\r\nPlease note that changes might take some minutes to be visible in the list...", Severity.Success);
}
catch (ProblemDetailsException exception)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
await LoRaWanConcentratorsClientService.UpdateConcentrator(concentrator);

// Prompts a snack bar to inform the action was successful
Snackbar.Add($"Device {concentrator.DeviceId} has been successfully updated!", Severity.Success);
Snackbar.Add($"Device {concentrator.DeviceId} has been successfully updated!\r\nPlease note that changes might take some minutes to be visible in the list...", Severity.Success);

// Go back to the list of device
NavigationManager.NavigateTo("lorawan/concentrators");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
await LoRaWanConcentratorsClientService.CreateConcentrator(concentrator);

// Prompts a snack bar to inform the action was successful
Snackbar.Add($"Device {concentrator.DeviceId} has been successfully created!", Severity.Success);
Snackbar.Add($"Device {concentrator.DeviceId} has been successfully created!\r\nPlease note that changes might take some minutes to be visible in the list...", Severity.Success);

// Go back to the list of concentrator
NavManager.NavigateTo("lorawan/concentrators");
Expand Down
Loading

0 comments on commit 6956b0e

Please sign in to comment.