import { mapState } from "pinia"; import { useConfigStore } from "@/stores/configurationStore"; import ShowSelectedObjectStore from "./ShowSelectedObjectStore.vue"; export default { components: { ShowSelectedObjectStore, }, props: { titleSuffix: { type: String, default: null, }, }, computed: { ...mapState(useConfigStore, ["config"]), preferredOrEmptyString() { if (this.config?.object_store_always_respect_user_selection) { return ""; } else { return "Preferred"; } }, title() { return this.l(`${this.preferredOrEmptyString} Target Galaxy Storage ${this.titleSuffix || ""}`); }, }, };