proxmox-backup/www/config
Shannon Sterz 7c570bac70 ui: check that store is set before trying to select in GCJobView
otherwise users will get a `b.store is null` error in the console and
a loading spinner is shown for a while.

the issue in question seems to stem from the event handler that gets
attached when the "Prune & GC Jobs" tab is opened for a specific
datastore. however, that event handler should *not* be attached for
the "Datastore" -> "Prune & GC Jobs" panel. it seems that the event
handler does still get attached, and will fire in the "Datastore"
view if it hasn't fired while opened in a specific datastore
(it should only trigger a single time).

that scenario seems to occur when a different tab was previously
selected in a specific datastore and navigation is triggered via the
side bar from the "Datastore" -> "Prune GC Jobs" to a specific
datastore. that leads to the "Prune & GC Jobs" view for that specific
datastore being opened very briefly in which the event handler gets
attached, navigation then automatically moves to the previously
selected tab. this will stop the store from updating ensuring that
the event is never triggered. when we then move to
the "Datastore" -> "Prune & GC Jobs" tab again the event handler will
be triggered but the store of the view is null leading to the error.

Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
Tested-by: Fiona Ebner <f.ebner@proxmox.com>
Tested-by: Fiona Ebner <f.ebner@proxmox.com>
2024-12-03 18:09:30 +01:00
..
ACLView.js ui: acl view: make path column flex, but enforce minWidth 2022-05-18 18:22:17 +02:00
CertificateView.js ui: node certificate: make parent panel scrollable 2022-10-11 11:27:18 +02:00
GCView.js ui: check that store is set before trying to select in GCJobView 2024-12-03 18:09:30 +01:00
MetricServerView.js ui: metricserver: fix enable column 2022-11-30 17:44:08 +01:00
NodeOptionView.js ui: add onlineHelp for consent-banner option 2024-11-26 12:00:08 +01:00
NotificationConfigView.js ui: add notification config panel 2024-04-23 23:14:46 +02:00
PruneAndGC.js fix typos in variables and function names 2024-08-07 16:49:31 +02:00
PruneView.js fix #4448: ui: prune jobs: rename Store to Datastore for consitency 2023-01-04 11:03:40 +01:00
RemoteView.js fix #3058: ui: improve remote edit UX by clarifying ID vs host 2022-01-12 09:38:59 +01:00
SyncView.js sync jobs: remove superfluous direction property 2024-11-26 16:02:22 +01:00
TokenView.js ui: access: stream line add/edit/.. button order and separators 2021-01-18 09:33:29 +01:00
TrafficControlView.js ui: traffic-control view: tune column width, add more flex 2021-11-20 22:32:53 +01:00
UserView.js ui: set min length for new passwords to 8 2024-11-25 15:51:47 +01:00
VerifyView.js ui: verify jobs: set/improve min-width for datastore and namespace columns 2023-01-04 11:19:29 +01:00
WebauthnView.js ui: webauthn: decrease upgrade frequency from 1s to 2.5s 2022-02-07 15:20:22 +01:00