Skip to content
Snippets Groups Projects
Commit d8701bbf authored by Eike Cochu's avatar Eike Cochu
Browse files

fixed alerter, creating topic model

parent 4f8b1c6f
Branches
No related tags found
No related merge requests found
......@@ -26,4 +26,4 @@ if [ $REPLACE_WEBROOT -eq 1 ]; then
VOLUME_WEBROOT="-v $DIR/webroot:/webroot"
fi
echo docker run -d $PORT_MAPPING $VOLUME_WEBAPPS $VOLUME_WEBROOT -v $DIR/logs:/tomcat/logs eikecochu/vipra
docker run -d $PORT_MAPPING $VOLUME_WEBAPPS $VOLUME_WEBROOT -v $DIR/logs:/tomcat/logs eikecochu/vipra
......@@ -11,6 +11,7 @@
</listAttribute>
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.m2e.launchconfig.classpathProvider"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="de.vipra.cmd.Main"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-f config2 -edS test -CE"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="vipra-cmd"/>
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.m2e.launchconfig.sourcepathProvider"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-ea"/>
......
......@@ -26,6 +26,8 @@ public class CreateModelCommand implements Command {
private TopicModelFull createModel(final String name, final TopicModelConfig modelConfig) throws Exception {
final TopicModelFull topicModel = new TopicModelFull(name, modelConfig);
topicModel.setColorSeed(random.nextLong());
modelConfig.setName(topicModel.getName());
modelConfig.setGroup(topicModel.getGroup());
dbTopicModels.createSingle(topicModel);
config.getTopicModelConfigs().put(topicModel.getName(), modelConfig);
......@@ -34,8 +36,6 @@ public class CreateModelCommand implements Command {
if (!modelDir.mkdirs())
throw new Exception("could not create model directory: " + modelDir.getAbsolutePath());
modelConfig.setName(topicModel.getName());
modelConfig.setGroup(topicModel.getGroup());
modelConfig.saveToFile(modelDir);
return topicModel;
......
......@@ -99,23 +99,23 @@
};
Alerter.prototype.showSuccess = function() {
return this.$alert(this, 'success', arguments);
return this.$alert('success', arguments);
};
Alerter.prototype.showInfo = function() {
return this.$alert(this, 'info', arguments);
return this.$alert('info', arguments);
};
Alerter.prototype.showWarning = function() {
return this.$alert(this, 'warning', arguments);
return this.$alert('warning', arguments);
};
Alerter.prototype.showDanger = function() {
return this.$alert(this, 'danger', arguments);
return this.$alert('danger', arguments);
};
Alerter.prototype.showPrimary = function() {
return this.$alert(this, 'primary', arguments);
return this.$alert('primary', arguments);
};
Alerter.prototype.unqueueAlert = function() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment