Skip to content

Commit

Permalink
Merge pull request #19491 from ElectronicBlueberry/fix-object-store-s…
Browse files Browse the repository at this point in the history
…elector

Fix preferred object store id reactivity
  • Loading branch information
mvdbeek authored Jan 31, 2025
2 parents dd8f409 + dac9299 commit 56ce829
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { library } from "@fortawesome/fontawesome-svg-core";
import { faDatabase, faEyeSlash, faHdd, faMapMarker, faSync, faTrash } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
import { watchImmediate } from "@vueuse/core";
import { BButton, BButtonGroup, BModal } from "bootstrap-vue";
import { formatDistanceToNowStrict } from "date-fns";
import { storeToRefs } from "pinia";
Expand Down Expand Up @@ -54,7 +55,12 @@ const reloadButtonLoading = ref(false);
const reloadButtonTitle = ref("");
const reloadButtonVariant = ref("link");
const showPreferredObjectStoreModal = ref(false);
const historyPreferredObjectStoreId = ref(props.history.preferred_object_store_id);
const historyPreferredObjectStoreId = ref<string | null | undefined>();
watchImmediate(
() => props.history,
() => (historyPreferredObjectStoreId.value = props.history.preferred_object_store_id)
);
const niceHistorySize = computed(() => prettyBytes(historySize.value));
const canManageStorage = computed(
Expand Down

0 comments on commit 56ce829

Please sign in to comment.