[pbs-devel] applied: [PATCH proxmox-backup] ui: show (local)datastore column only in global sync/verifyview

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Nov 10 13:24:40 CET 2020


On 10.11.20 12:58, Dominik Csapak wrote:
> its rather hacky, but our cbind mixin does not support columns (yet).
> if it does sometime in the future, we could use that instead
> 
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
>  www/config/SyncView.js   |  9 +++++++++
>  www/config/VerifyView.js | 14 ++++++++++++++
>  2 files changed, 23 insertions(+)
> 
>

applied, thanks! Follow'd up with changing this to a slightly less hard coded
way, hoping that dataIndex does not changes as often as a column reordering,
addition, or deletion may happen.

for (let column of me.columns) {
    if (column.dataIndex === 'store') {
        column.hidden = hideLocalDatastore;
        break;
    }
}





More information about the pbs-devel mailing list