<vdr-action-bar>
    <vdr-ab-left>
        <vdr-entity-info [entity]="entity$ | async"></vdr-entity-info>
    </vdr-ab-left>

    <vdr-ab-right>
        <vdr-action-bar-items locationId="asset-detail"></vdr-action-bar-items>
        <button
            *vdrIfPermissions="['UpdateCatalog', 'UpdateAsset']"
            class="btn btn-primary"
            (click)="save()"
            [disabled]="detailForm.invalid || detailForm.pristine"
        >
            {{ 'common.update' | translate }}
        </button>
    </vdr-ab-right>
</vdr-action-bar>
<vdr-asset-preview
    [asset]="entity$ | async"
    [editable]="true"
    [customFields]="customFields"
    [customFieldsForm]="detailForm.get('customFields')"
    (assetChange)="onAssetChange($event)"
></vdr-asset-preview>
