proxmox-backup/www/tape/window
Dominik Csapak b70a12e723 ui: tape/Restore: allow simple namespace mapping
add a default namespace selector (of the current default store)
and a namespace selector per target datastore (for media-sets with
multiple datastores).

to achieve that we have to change the way we handle the mapping field a bit:
* don't use it as field directly (otherwise the value gets stringified),
  but use the 'getValue' method in 'onGetValues'.
* set the defaultStore there, not only that we have one
  (with this we can now easily show it as emptytext for each store)
* add a reference to the widgets to the record so that we can access
  them in the respective change handler (also clean those references up,
  else we have a cyclic reference between record <-> widget)

in onGetValues, if we have multiple datastores, the mapping grid does
all the work for us, otherwise, we have to create the ns mapping
ourselves there.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-05-13 14:09:53 +02:00
..
ChangerEdit.js ui: tape: add Edit Windows 2021-01-28 15:07:29 +01:00
DriveEdit.js ui: rename 'Changer Slot' to 'Drive Number' 2021-02-27 09:51:13 +01:00
EncryptionEdit.js ui: tape: add EncryptionPanel to add/remove encryption keys 2021-02-04 17:35:46 +01:00
Erase.js ui: tape: rename erase to format 2021-04-14 12:25:53 +02:00
LabelMedia.js ui: correctly enable/disable changer drive buttons 2021-03-02 09:54:33 +01:00
PoolEdit.js ui: tape/pool: set onlineHelp for edit/add window 2021-03-28 13:29:02 +02:00
TapeBackup.js ui: tape/Backup: add namespace and recursion field for manual backup 2022-05-13 14:09:53 +02:00
TapeBackupJob.js ui: tape/BackupJobEdit: add onlineHelp 2022-05-13 14:09:53 +02:00
TapeRestore.js ui: tape/Restore: allow simple namespace mapping 2022-05-13 14:09:53 +02:00