mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-04 10:09:42 +00:00
bug5807: introduced confirmation dialog when loading report while queries exist in result presenter
This commit is contained in:
1 parent
d7a0fc7628
commit
6e791640f5
4 files changed
+6
No files matched your search
+3
@@ -178,6 +178,8 @@ public class DataMiningReportStoreControls extends Composite {
|
||||
}
|
||||
|
||||
private StoredDataMiningReportDTO applyReport(StoredDataMiningReportDTO storedReport) {
|
||||
if (!Util.stream(resultsPresenter.getPresenterIds()).map(presenterId->resultsPresenter.getQueryDefinition(presenterId)).anyMatch(queryDefinition->queryDefinition != null) ||
|
||||
Window.confirm(StringMessages.INSTANCE.isItOkToReplaceAllTabsWithQueriesByReport())) {
|
||||
showBusyIndicator(true);
|
||||
final DataMiningReportDTO report = storedReport.getReport();
|
||||
reportProvider.setCurrentReport(storedReport);
|
||||
@@ -196,6 +198,7 @@ public class DataMiningReportStoreControls extends Composite {
|
||||
NotificationType.WARNING);
|
||||
}
|
||||
});
|
||||
}
|
||||
return storedReport;
|
||||
}
|
||||
|
||||
|
||||
+1
@@ -112,4 +112,5 @@ public interface StringMessages extends com.sap.sse.gwt.client.StringMessages {
|
||||
String newParameterName();
|
||||
String parameterNameMustNotBeEmpty();
|
||||
String overwriteExistingReportBySameName(String name);
|
||||
String isItOkToReplaceAllTabsWithQueriesByReport();
|
||||
}
|
||||
+1
@@ -96,3 +96,4 @@ parameterNamesMustBeUniqueInReport=Parameter name {0} of parameter with type {1}
|
||||
newParameterName=Name for New Parameter
|
||||
parameterNameMustNotBeEmpty=Parameter name must not be empty.
|
||||
overwriteExistingReportBySameName=Overwrite existing report by same name "{0}"?
|
||||
isItOkToReplaceAllTabsWithQueriesByReport=Is it OK to replace all tabs with their queries with the report?
|
||||
+1
@@ -85,3 +85,4 @@ parameterNamesMustBeUniqueInReport=Parameter-Name {0} des Parameters mit Typ {1}
|
||||
newParameterName=Name des neuen Parameters
|
||||
parameterNameMustNotBeEmpty=Leere Parameternamen sind nicht erlaubt.
|
||||
overwriteExistingReportBySameName=Bestehenden Bericht "{0}" überschreiben?
|
||||
isItOkToReplaceAllTabsWithQueriesByReport=Sollen alle bisherigen Ergebnisse und Anfragen durch den Bericht ersetzt werden?
|
||||
Reference in new issue
Block a user