Skip to content

Commit

Permalink
feat(config): add default layout name
Browse files Browse the repository at this point in the history
  • Loading branch information
floryst committed Feb 13, 2024
1 parent 9c5f2b4 commit 21ecd96
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ControlsStrip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import MessageCenter from '@/src/components/MessageCenter.vue';
import { MessageType, useMessageStore } from '@/src/store/messages';
import { ConnectionState, useServerStore } from '@/src/store/server';
import { useViewStore } from '@/src/store/views';
import { Layouts } from '@/src/config';
import { Layouts, DefaultLayoutName } from '@/src/config';
interface Props {
hasData: boolean;
Expand All @@ -23,7 +23,7 @@ defineProps<Props>();
function useViewLayout() {
const viewStore = useViewStore();
const layoutName = ref('Quad View');
const layoutName = ref(DefaultLayoutName);
const { layout: currentLayout } = storeToRefs(viewStore);
watch(
Expand Down
5 changes: 5 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ export const InitViewSpecs: Record<string, ViewSpec> = {
*/
export const DefaultViewSpec = InitViewSpecs[InitViewIDs.Axial];

/**
* The default layout.
*/
export const DefaultLayoutName = 'Quad View';

/**
* Defines the default layouts.
*/
Expand Down

0 comments on commit 21ecd96

Please sign in to comment.