Skip to content

Commit 6c2f523

Browse files
author
zaharchenko
committed
Incorrect working directory used to upload config file after changes in CUBA 7.2 #27
1 parent 335fac6 commit 6c2f523

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

modules/gui/src/com/haulmont/addon/admintools/gui/config_loader/ConfigLoader.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,16 @@ public class ConfigLoader extends AbstractWindow {
5050
protected Notifications notifications;
5151
@Inject
5252
protected Dialogs dialogs;
53+
@Inject
54+
private Label<String> helpLabel;
5355

5456
protected Path configDir;
5557

5658
@Override
5759
public void init(Map<String, Object> params) {
5860
super.init(params);
5961
configDir = Paths.get(configuration.getConfig(GlobalConfig.class).getConfDir()).getParent();
62+
helpLabel.setValue(String.format(getMessage("helpMessage"), configuration.getConfig(GlobalConfig.class).getConfDir()));
6063
}
6164

6265
public void apply() {

modules/gui/src/com/haulmont/addon/admintools/gui/config_loader/config-loader.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<layout expand="vBox"
2525
spacing="true"
2626
width="100%">
27-
<label id="helpLabel" value="msg://helpMessage"/>
27+
<label id="helpLabel" htmlEnabled="true"/>
2828
<label id="helpLabel2" value="msg://helpMessage2"/>
2929
<hbox expand="configPathField"
3030
spacing="true"

modules/gui/src/com/haulmont/addon/admintools/gui/config_loader/messages.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ dropZoneDescription = Drop file here
2323
fileNotUploaded = Please upload a configuration file
2424
configPath = Relative path
2525
pathValidMessage = Is not valid path "%s"
26-
helpMessage = File will be uploaded to a web application server in the config directory ./tomcat/conf/
26+
helpMessage = File will be uploaded to a web application server in the config directory <br><b>%s</b>
2727
helpMessage2 = You can specify a relative path in the field below.

0 commit comments

Comments
 (0)