<!--
Copyright 2017 The Kubernetes Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<kd-object-meta [initialized]="isInitialized"
                [objectMeta]="persistentVolumeClaim?.objectMeta"></kd-object-meta>

<kd-card [initialized]="isInitialized">
  <div title
       i18n>Resource information</div>
  <div content
       *ngIf="isInitialized"
       fxLayout="row wrap">
    <kd-property *ngIf="persistentVolumeClaim?.status">
      <div key
           i18n>Status</div>
      <div value>{{persistentVolumeClaim.status}}</div>
    </kd-property>
    <kd-property *ngIf="persistentVolumeClaim?.storageClass">
      <div key
           i18n>Storage Class</div>
      <div value>{{persistentVolumeClaim.storageClass}}</div>
    </kd-property>
    <kd-property *ngIf="persistentVolumeClaim?.capacity"
                 fxFlex="100">
      <div key
           i18n>Capacity</div>
      <div value>
        <kd-chips [map]="persistentVolumeClaim.capacity"></kd-chips>
      </div>
    </kd-property>
    <kd-property *ngIf="persistentVolumeClaim?.accessModes"
                 fxFlex="100">
      <div key
           i18n>Access Modes</div>
      <div value>
        <kd-chips [map]="persistentVolumeClaim.accessModes"></kd-chips>
      </div>
    </kd-property>
  </div>
</kd-card>
