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