Commit 1397e92b authored by Kushal Pandya's avatar Kushal Pandya

Fade out node container when request is active

parent bcbbd05c
...@@ -112,14 +112,16 @@ export default { ...@@ -112,14 +112,16 @@ export default {
} }
}, },
handleMounted() { handleMounted() {
eventHub.$emit('pollNodeDetails', this.node.id); eventHub.$emit('pollNodeDetails', this.node);
}, },
}, },
}; };
</script> </script>
<template> <template>
<li> <li
:class="{ 'node-action-active': node.nodeActionActive }"
>
<div class="row"> <div class="row">
<div class="col-md-8"> <div class="col-md-8">
<div class="row"> <div class="row">
...@@ -128,7 +130,7 @@ export default { ...@@ -128,7 +130,7 @@ export default {
{{ node.url }} {{ node.url }}
</strong> </strong>
<loading-icon <loading-icon
v-if="isNodeDetailsLoading" v-if="isNodeDetailsLoading || node.nodeActionActive"
class="node-details-loading prepend-left-10 pull-left inline" class="node-details-loading prepend-left-10 pull-left inline"
size="1" size="1"
/> />
......
...@@ -184,7 +184,7 @@ describe('GeoNodeItemComponent', () => { ...@@ -184,7 +184,7 @@ describe('GeoNodeItemComponent', () => {
spyOn(eventHub, '$emit'); spyOn(eventHub, '$emit');
vm.handleMounted(); vm.handleMounted();
expect(eventHub.$emit).toHaveBeenCalledWith('pollNodeDetails', mockNodes[0].id); expect(eventHub.$emit).toHaveBeenCalledWith('pollNodeDetails', vm.node);
}); });
}); });
}); });
......
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