Remove unused notification methods in ParticleController and adjust size slider minimum value in particle component.
This commit is contained in:
parent
44d4cc1f05
commit
0e4ce21c58
|
|
@ -95,9 +95,7 @@ public class ParticleController implements ParticlesApi {
|
|||
log.error("Particles file path {} is not a directory, not saving particles file", particlesFilePath);
|
||||
return ResponseEntity.status(404).build();
|
||||
}
|
||||
ResponseEntity<Void> voidResponseEntity = writeContentToFile(file, filename, content);
|
||||
// notifyServerOfFileUpload(filename);
|
||||
return voidResponseEntity;
|
||||
return writeContentToFile(file, filename, content);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -115,37 +113,9 @@ public class ParticleController implements ParticlesApi {
|
|||
}
|
||||
}
|
||||
|
||||
ResponseEntity<Void> voidResponseEntity = writeContentToFile(file, filename, content);
|
||||
// notifyServerOfFileUpload(uuid, filename);
|
||||
return voidResponseEntity;
|
||||
return writeContentToFile(file, filename, content);
|
||||
}
|
||||
|
||||
// private void notifyServerOfFileUpload(String filename) {
|
||||
// String notificationUrl = String.format("http://%s/notify/%s.json", notificationServerUrl, filename);
|
||||
// sendNotification(notificationUrl, String.format("file upload: %s", filename));
|
||||
// }
|
||||
//
|
||||
// private void notifyServerOfFileUpload(String uuid, String filename) {
|
||||
// String notificationUrl = String.format("%s/notify/%s/%s.json", notificationServerUrl, uuid, filename);
|
||||
// sendNotification(notificationUrl, String.format("file upload for user %s: %s", uuid, filename));
|
||||
// }
|
||||
//
|
||||
// private void sendNotification(String notificationUrl, String logDescription) {
|
||||
// try {
|
||||
// RestTemplate restTemplate = new RestTemplate();
|
||||
// ResponseEntity<String> response = restTemplate.getForEntity(notificationUrl, String.class);
|
||||
//
|
||||
// if (response.getStatusCode().is2xxSuccessful()) {
|
||||
// log.info("Successfully notified server of {}", logDescription);
|
||||
// } else {
|
||||
// log.warn("Failed to notify server of {}, status: {}",
|
||||
// logDescription, response.getStatusCode());
|
||||
// }
|
||||
// } catch (Exception e) {
|
||||
// log.error("Error notifying server of {}", logDescription, e);
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
private ResponseEntity<Void> writeContentToFile(File dir, String filename, MultipartFile content) {
|
||||
filename += ".json";
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
</div>
|
||||
|
||||
<div class="size-slider">
|
||||
<mat-slider min="0.1" max="4" step="0.1" class="full-width">
|
||||
<mat-slider min="0.5" max="4" step="0.1" class="full-width">
|
||||
<input matSliderThumb [(ngModel)]="selectedSize">
|
||||
</mat-slider>
|
||||
<span>Size: {{ selectedSize }}</span>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user