no message
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
package _VisualDVM.Passes.All;
|
||||
import Common.Passes.Pass;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Constants;
|
||||
import _VisualDVM.Global;
|
||||
@@ -22,6 +23,10 @@ public class PublishComponent extends ComponentsServerPass<Component> {
|
||||
return "/Common/icons/Publish.png";
|
||||
}
|
||||
@Override
|
||||
protected boolean isSafe() {
|
||||
return false;
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
if (!Utils_.isWindows()) {
|
||||
Log.Writeln_("Публикация компонент разрешена только для Windows");
|
||||
@@ -88,7 +93,18 @@ public class PublishComponent extends ComponentsServerPass<Component> {
|
||||
if (f.fields.cbForceMail.isSelected())
|
||||
message.addAttachement(target.getFile());
|
||||
//--
|
||||
Global.mainModule.getPass(PassCode.Email).Do(message, Global.componentsServer.db.subscribers.getActiveSubscribers());
|
||||
//todo потом сделать красивее. на сторону сервера это безобразие
|
||||
Pass unsafeEmail = new Email(){
|
||||
@Override
|
||||
public String getDescription() {
|
||||
return "Рассылка по Email";
|
||||
}
|
||||
@Override
|
||||
protected boolean isSafe() {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
unsafeEmail.Do(message, Global.componentsServer.db.subscribers.getActiveSubscribers());
|
||||
//---
|
||||
if (target.getComponentType().equals(ComponentType.Sapfor_F) && f.fields.cbAssemblyOnServer.isSelected()) {
|
||||
Global.mainModule.getUI().getMainWindow().FocusTesting();
|
||||
|
||||
Reference in New Issue
Block a user