rename composable function

This commit is contained in:
David Tsay 2024-09-23 15:44:46 -07:00
parent d6a78839d5
commit cc2e1eaed2
2 changed files with 3 additions and 3 deletions

View File

@ -187,7 +187,7 @@ import RecentObjectsList from './RecentObjectsList.vue';
import GrandSearch from './search/GrandSearch.vue';
import NotificationBanner from './status-bar/NotificationBanner.vue';
import StatusIndicators from './status-bar/StatusIndicators.vue';
import { useObserveOverflow } from './useOverflowToggle.js';
import { useOverflowObserver } from './useOverflowToggle.js';
const SHELL_HEAD_LOCAL_STORAGE_KEY = 'openmct-shell-head';
const DEFAULT_HEAD_EXPANDED = true;
@ -229,7 +229,7 @@ export default {
localStorage.setItem(SHELL_HEAD_LOCAL_STORAGE_KEY, initialHeadProps);
}
const { isOverflowing, observeOverflow, unObserveOverflow } = useObserveOverflow(
const { isOverflowing, observeOverflow, unObserveOverflow } = useOverflowObserver(
indicatorsComponent,
'indicatorsContainer'
);

View File

@ -34,7 +34,7 @@ import { computed, onMounted, onUnmounted, ref } from 'vue';
* @param {string} childRef the ref name of the child component
* @returns { isOverflowing, observeOverflow, unObserveOverflow }
*/
export function useObserveOverflow(component, childRef) {
export function useOverflowObserver(component, childRef) {
let observer;
let element;