рефакторинг запроса версий компонент. сделал одной командой
This commit is contained in:
@@ -20,10 +20,6 @@ public class AppendBugReportField extends ClientPass<ComponentsServer, BugReport
|
||||
return "/icons/Append.png";
|
||||
}
|
||||
@Override
|
||||
protected boolean needsAnimation() {
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
return "";
|
||||
}
|
||||
@@ -55,8 +51,7 @@ public class AppendBugReportField extends ClientPass<ComponentsServer, BugReport
|
||||
}
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
BugReport actual =
|
||||
(BugReport) getServer().ClientRequest(ServerCode.AppendBugReportTextField, "", new BugReportAdditionJson(target, fieldName, addition));
|
||||
BugReport actual = (BugReport) getServer().ClientRequest(ServerCode.AppendBugReportTextField, "", new BugReportAdditionJson(target, fieldName, addition));
|
||||
target.SynchronizeFields(actual);
|
||||
Global.componentsServer.db.Update(target);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user