Skip to content

Commit 3c18c73

Browse files
authored
[Enhancement] Bucket Explorer Refresh Interval configurable (#2440)
* [Enhancement] Bucket Explorer Refresh Interval configurable * SonarQube updates
1 parent 722e021 commit 3c18c73

File tree

1 file changed

+6
-1
lines changed
  • openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-bucketexplorer/src/tools/BucketExplorer

1 file changed

+6
-1
lines changed

openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-bucketexplorer/src/tools/BucketExplorer/BucketExplorer.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ export default {
262262
OutputDialog,
263263
},
264264
data() {
265+
const refreshInterval = Number.parseInt(localStorage.getItem('bucketExplorerRefreshInterval')) || 60
266+
265267
return {
266268
title: 'Bucket Explorer',
267269
search: '',
@@ -271,7 +273,7 @@ export default {
271273
volumes: [],
272274
uploadPathDialog: false,
273275
optionsDialog: false,
274-
refreshInterval: 60,
276+
refreshInterval,
275277
updater: null,
276278
updating: false,
277279
path: '',
@@ -348,6 +350,9 @@ export default {
348350
this.uploadPathDialog = true
349351
},
350352
refreshInterval() {
353+
if (this.refreshInterval != null) {
354+
localStorage.setItem('bucketExplorerRefreshInterval', String(this.refreshInterval))
355+
}
351356
this.changeUpdater()
352357
},
353358
},

0 commit comments

Comments
 (0)