Commit c77c038c authored by Kushal Pandya's avatar Kushal Pandya

Use DetailsSectionMixin, pass on itemValueStale to child component

parent f0f8205e
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
import { VALUE_TYPE } from '../../constants'; import { VALUE_TYPE } from '../../constants';
import DetailsSectionMixin from '../../mixins/details_section_mixin';
import GeoNodeDetailItem from '../geo_node_detail_item.vue'; import GeoNodeDetailItem from '../geo_node_detail_item.vue';
import SectionRevealButton from './section_reveal_button.vue'; import SectionRevealButton from './section_reveal_button.vue';
...@@ -13,6 +15,9 @@ ...@@ -13,6 +15,9 @@
SectionRevealButton, SectionRevealButton,
GeoNodeDetailItem, GeoNodeDetailItem,
}, },
mixins: [
DetailsSectionMixin,
],
props: { props: {
nodeDetails: { nodeDetails: {
type: Object, type: Object,
...@@ -98,14 +103,12 @@ ...@@ -98,14 +103,12 @@
class="col-md-6 prepend-left-15 prepend-top-10 section-items-container" class="col-md-6 prepend-left-15 prepend-top-10 section-items-container"
> >
<geo-node-detail-item <geo-node-detail-item
v-for="(nodeDetailItem, index) in nodeDetailItems" :item-title="s__('GeoNodes|Storage config')"
:key="index" :item-value="storageShardsStatus"
:css-class="nodeDetailItem.cssClass" :item-value-type="$options.valueType.PLAIN"
:item-title="nodeDetailItem.itemTitle" :item-value-stale="statusInfoStale"
:item-value="nodeDetailItem.itemValue" :item-value-stale-tooltip="statusInfoStaleMessage"
:item-value-type="nodeDetailItem.itemValueType" :css-class="storageShardsCssClass"
:success-label="nodeDetailItem.successLabel"
:neutral-label="nodeDetailItem.neutraLabel"
/> />
</div> </div>
</div> </div>
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
import { VALUE_TYPE, CUSTOM_TYPE } from '../../constants'; import { VALUE_TYPE, CUSTOM_TYPE } from '../../constants';
import DetailsSectionMixin from '../../mixins/details_section_mixin';
import GeoNodeDetailItem from '../geo_node_detail_item.vue'; import GeoNodeDetailItem from '../geo_node_detail_item.vue';
import SectionRevealButton from './section_reveal_button.vue'; import SectionRevealButton from './section_reveal_button.vue';
...@@ -12,6 +14,9 @@ ...@@ -12,6 +14,9 @@
SectionRevealButton, SectionRevealButton,
GeoNodeDetailItem, GeoNodeDetailItem,
}, },
mixins: [
DetailsSectionMixin,
],
props: { props: {
nodeDetails: { nodeDetails: {
type: Object, type: Object,
...@@ -135,6 +140,8 @@ ...@@ -135,6 +140,8 @@
:item-title="nodeDetailItem.itemTitle" :item-title="nodeDetailItem.itemTitle"
:item-value="nodeDetailItem.itemValue" :item-value="nodeDetailItem.itemValue"
:item-value-type="nodeDetailItem.itemValueType" :item-value-type="nodeDetailItem.itemValueType"
:item-value-stale="statusInfoStale"
:item-value-stale-tooltip="statusInfoStaleMessage"
:custom-type="nodeDetailItem.customType" :custom-type="nodeDetailItem.customType"
:event-type-log-status="nodeDetailItem.eventTypeLogStatus" :event-type-log-status="nodeDetailItem.eventTypeLogStatus"
/> />
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
import { VALUE_TYPE, HELP_INFO_URL } from '../../constants'; import { VALUE_TYPE, HELP_INFO_URL } from '../../constants';
import DetailsSectionMixin from '../../mixins/details_section_mixin';
import GeoNodeDetailItem from '../geo_node_detail_item.vue'; import GeoNodeDetailItem from '../geo_node_detail_item.vue';
import SectionRevealButton from './section_reveal_button.vue'; import SectionRevealButton from './section_reveal_button.vue';
...@@ -11,6 +13,9 @@ ...@@ -11,6 +13,9 @@
GeoNodeDetailItem, GeoNodeDetailItem,
SectionRevealButton, SectionRevealButton,
}, },
mixins: [
DetailsSectionMixin,
],
props: { props: {
nodeDetails: { nodeDetails: {
type: Object, type: Object,
...@@ -122,6 +127,8 @@ ...@@ -122,6 +127,8 @@
:item-title="nodeDetailItem.itemTitle" :item-title="nodeDetailItem.itemTitle"
:item-value="nodeDetailItem.itemValue" :item-value="nodeDetailItem.itemValue"
:item-value-type="nodeDetailItem.itemValueType" :item-value-type="nodeDetailItem.itemValueType"
:item-value-stale="statusInfoStale"
:item-value-stale-tooltip="statusInfoStaleMessage"
:success-label="nodeDetailItem.successLabel" :success-label="nodeDetailItem.successLabel"
:neutral-label="nodeDetailItem.neutraLabel" :neutral-label="nodeDetailItem.neutraLabel"
:failure-label="nodeDetailItem.failureLabel" :failure-label="nodeDetailItem.failureLabel"
......
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