Skip to content

Commit

Permalink
Merge pull request #4074 from mathesar-foundation/page_title
Browse files Browse the repository at this point in the history
Fix small problem with schema name in page titles
  • Loading branch information
pavish authored Dec 13, 2024
2 parents 135b8a4 + 4401a54 commit f157aed
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions mathesar_ui/src/pages/pageTitleUtils.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
import { get } from 'svelte/store';
import { _ } from 'svelte-i18n';

import { currentSchema } from '@mathesar/stores/schemas';

const SEPARATOR = ' | ';

function makePageTitle(parts: string[]): string {
const schema = get(currentSchema);
const allParts = [...parts];
if (schema) {
// TODO_BETA: Make this reactive
allParts.push(get(schema.name));
}
allParts.push(get(_)('mathesar'));
return allParts.join(SEPARATOR);
}
Expand Down

0 comments on commit f157aed

Please sign in to comment.