]> git.proxmox.com Git - pve-manager-legacy.git/commit
ui: storage: show no-keeps hint exactly when needed
authorFabian Ebner <f.ebner@proxmox.com>
Tue, 24 Nov 2020 14:31:36 +0000 (15:31 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 24 Nov 2020 14:45:24 +0000 (15:45 +0100)
commitf80a2de4a7f2be2e894a7d3d87c1b049e40bb653
treea4316a2f61e2e2a68928b350f7ce8b928b600e55
parent5bb7b2dc985bcc6013c80da0639a13c522e22d18
ui: storage: show no-keeps hint exactly when needed

extracting the logic from the previous checkbox listener into a function, which
is also called on field changes and once in afterrender. Calling it initially
makes sure the hint is also displayed at the beginning when editing a storage
with no retention options configured, and the initial disabling of the input
fields for the isCreate case now also happens through that call.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
www/manager6/storage/Base.js