proxmox-backup/www
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
..
button ui: administration: set icons for tabs 2020-10-31 09:11:11 +01:00
config ui: check that store is set before trying to select in GCJobView 2024-12-03 18:09:30 +01:00
css ui: add datastore status mask for unmounted removable datastores 2024-11-25 21:34:22 +01:00
dashboard ui: dashboard: show tape backups/restores on task summary 2023-05-17 11:23:54 +02:00
data ui: running tasks: update limit to 100 2020-07-11 12:53:32 +02:00
datastore ui: mask unmounted datastores in datastore overview 2024-11-28 12:07:25 +01:00
form ui: partition selector: clean-up indentation of model transform arrow-fn 2024-11-27 20:16:32 +01:00
images ui: tape drive icon: invert 2021-03-08 15:51:49 +01:00
panel gui: remove document.execCommand calls 2024-03-25 16:42:54 +01:00
tape tape: include drive activity in status 2024-05-14 10:31:33 +02:00
window ui: fix remove vanished tooltip to be valid for both sync directions 2024-11-28 11:29:15 +01:00
Application.js ui: app: fix openID helper usage and rework style 2021-07-03 23:12:08 +02:00
Dashboard.js dashboard: make Subscription translatable 2024-11-27 15:25:14 +01:00
DirectoryList.js ui: support create removable datastore through directory creation 2024-11-25 21:34:22 +01:00
index.hbs ui: show consent banner before login 2024-11-25 18:48:13 +01:00
LoginView.js ui: login view: add missing trailing comma 2024-11-25 21:34:22 +01:00
MainView.js ui: add fingerprint also to the 'show connection information' window 2023-11-29 17:12:41 +01:00
Makefile ui: sync jobs: revert to single list for pull/push jobs 2024-11-26 14:54:33 +01:00
NavigationTree.js ui: tree: make Tape Backup string translatable 2024-11-27 15:25:11 +01:00
NodeNotes.js fix #3067: ui: add a separate notes view for longer markdown notes 2022-04-25 08:39:39 +02:00
OnlineHelpInfo.js docs: update online-help-info reference map 2024-11-26 12:07:38 +01:00
Schema.js ui: add MetricServerView and use it 2022-06-13 10:01:05 +02:00
ServerAdministration.js ui: server administration: repos: add online help 2021-07-22 10:09:53 +02:00
ServerStatus.js gui: remove document.execCommand calls 2024-03-25 16:42:54 +01:00
Subscription.js ui: trim whitespaces when adding a subscription key 2024-03-01 10:44:40 +01:00
SystemConfiguration.js ui: enable vlan widget 2024-04-24 21:49:10 +02:00
Utils.js ui: utils: add task description for mounting/unmounting 2024-11-26 11:59:31 +01:00
VersionInfo.js ui: version info: replace hyphen separator with dot 2024-11-27 20:31:53 +01:00
ZFSList.js ui: some more eslint auto-fixes 2020-09-25 18:34:54 +02:00