Commit c4407c73 authored by Reza Sahebgharan's avatar Reza Sahebgharan

fix(delete Name from Devicemap): Delete Name from Devicemap Object

parent 7017294e
Pipeline #763 passed with stages
in 48 minutes and 36 seconds
...@@ -16,3 +16,4 @@ accounts-password ...@@ -16,3 +16,4 @@ accounts-password
ardatan:webpack ardatan:webpack
ardatan:webpack-dev-middleware ardatan:webpack-dev-middleware
peerlibrary:reactive-publish
...@@ -9,8 +9,11 @@ babel-runtime@1.5.0-alpha190.9 ...@@ -9,8 +9,11 @@ babel-runtime@1.5.0-alpha190.9
base64@1.0.12 base64@1.0.12
binary-heap@1.0.11 binary-heap@1.0.11
boilerplate-generator@1.6.0 boilerplate-generator@1.6.0
caching-compiler@1.2.1
callback-hook@1.1.0 callback-hook@1.1.0
check@1.3.1 check@1.3.1
coffeescript@2.4.1
coffeescript-compiler@2.4.1
ddp@1.4.0 ddp@1.4.0
ddp-client@2.3.3 ddp-client@2.3.3
ddp-common@1.4.0 ddp-common@1.4.0
...@@ -50,6 +53,12 @@ mongo-id@1.0.7 ...@@ -50,6 +53,12 @@ mongo-id@1.0.7
npm-bcrypt@0.9.3 npm-bcrypt@0.9.3
npm-mongo@3.3.0-alpha190.9 npm-mongo@3.3.0-alpha190.9
ordered-dict@1.1.0 ordered-dict@1.1.0
peerlibrary:assert@0.3.0
peerlibrary:extend-publish@0.6.0
peerlibrary:fiber-utils@0.10.0
peerlibrary:reactive-mongo@0.4.0
peerlibrary:reactive-publish@0.10.0
peerlibrary:server-autorun@0.8.0
promise@0.11.2 promise@0.11.2
random@1.1.0 random@1.1.0
rate-limit@1.0.9 rate-limit@1.0.9
......
...@@ -37,7 +37,7 @@ services: ...@@ -37,7 +37,7 @@ services:
app: app:
container_name: karname-app container_name: karname-app
restart: always restart: always
image: "karname-app" image: repo.marcopacs.com/karname/karname-app
ports: ports:
- "80:3000" - "80:3000"
environment: environment:
......
...@@ -260,7 +260,6 @@ export default { ...@@ -260,7 +260,6 @@ export default {
if (this.selectedHisLink != undefined && this.selectedHisLink != null) { if (this.selectedHisLink != undefined && this.selectedHisLink != null) {
this.DevicemapForm.HisLinkId = this.selectedHisLink._id; this.DevicemapForm.HisLinkId = this.selectedHisLink._id;
this.DevicemapForm.Name = this.selectedHisLink.Name;
} }
Meteor.call("editDevicemap", this.DevicemapForm, function() { Meteor.call("editDevicemap", this.DevicemapForm, function() {
......
...@@ -2,8 +2,10 @@ import DeviceMap from '../../collections/devicemap'; ...@@ -2,8 +2,10 @@ import DeviceMap from '../../collections/devicemap';
import { check } from 'meteor/check'; import { check } from 'meteor/check';
Meteor.publish("devicemaps", function() { Meteor.publish("devicemaps", function() {
this.autorun(function(computation) {
if (!this.userId) { if (!this.userId) {
return this.ready(); return this.ready();
} }
return DeviceMap.find({}); return DeviceMap.find({});
});
}); });
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment