Skip to content
Snippets Groups Projects
Unverified Commit 92ff5d17 authored by Mahatthana (Kelvin) Nomsawadi's avatar Mahatthana (Kelvin) Nomsawadi Committed by GitHub
Browse files

Make admin settings paths prettier (#23781)

parent 0f66536f
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ const APP_ORIGIN_SETTING = {
PLUGIN_ADMIN_SETTINGS_UPDATES.push(sections =>
updateIn(
sections,
["embedding_in_other_applications/full-app", "settings"],
["embedding-in-other-applications/full-app", "settings"],
settings => {
return [...settings, APP_ORIGIN_SETTING];
},
......
......@@ -21,7 +21,7 @@ interface EmbeddingOptionProps {
export default function EmbeddingOption({ setting }: EmbeddingOptionProps) {
return (
<Link
to={`/admin/settings/embedding_in_other_applications/${setting.embedType}`}
to={`/admin/settings/embedding-in-other-applications/${setting.embedType}`}
>
<StyledCard compact>
{setting.embedType === "full-app" && <Label>{t`Paid`}</Label>}
......
......@@ -306,7 +306,7 @@ const SECTIONS = updateSectionsWithPlugins({
},
],
},
public_sharing: {
"public-sharing": {
name: t`Public Sharing`,
order: 9,
settings: [
......@@ -329,7 +329,7 @@ const SECTIONS = updateSectionsWithPlugins({
},
],
},
embedding_in_other_applications: {
"embedding-in-other-applications": {
name: t`Embedding`,
order: 10,
settings: [
......@@ -387,7 +387,7 @@ const SECTIONS = updateSectionsWithPlugins({
},
],
},
"embedding_in_other_applications/standalone": {
"embedding-in-other-applications/standalone": {
settings: [
{
widget: () => {
......@@ -397,7 +397,7 @@ const SECTIONS = updateSectionsWithPlugins({
crumbs={[
[
t`Embedding`,
"/admin/settings/embedding_in_other_applications",
"/admin/settings/embedding-in-other-applications",
],
[t`Standalone embeds`],
]}
......@@ -432,13 +432,13 @@ const SECTIONS = updateSectionsWithPlugins({
},
{
widget: () => (
<RedirectWidget to="/admin/settings/embedding_in_other_applications" />
<RedirectWidget to="/admin/settings/embedding-in-other-applications" />
),
getHidden: (_, derivedSettings) => derivedSettings["enable-embedding"],
},
],
},
"embedding_in_other_applications/full-app": {
"embedding-in-other-applications/full-app": {
settings: [
{
widget: () => {
......@@ -448,7 +448,7 @@ const SECTIONS = updateSectionsWithPlugins({
crumbs={[
[
t`Embedding`,
"/admin/settings/embedding_in_other_applications",
"/admin/settings/embedding-in-other-applications",
],
[t`Full-app embedding`],
]}
......@@ -464,7 +464,7 @@ const SECTIONS = updateSectionsWithPlugins({
},
{
widget: () => (
<RedirectWidget to="/admin/settings/embedding_in_other_applications" />
<RedirectWidget to="/admin/settings/embedding-in-other-applications" />
),
getHidden: (_, derivedSettings) => derivedSettings["enable-embedding"],
},
......
......@@ -222,7 +222,7 @@ function getEmbeddingHelperText({
return jt`In order to embed your question, you have to first ${(
<a
className="link"
href="/admin/settings/embedding_in_other_applications"
href="/admin/settings/embedding-in-other-applications"
>
enable embedding in your Admin settings.
</a>
......
import { restore, isOSS } from "__support__/e2e/helpers";
const embeddingPage = "/admin/settings/embedding_in_other_applications";
const embeddingPage = "/admin/settings/embedding-in-other-applications";
const licensePage = "/admin/settings/premium-embedding-license";
// A random embedding token with valid format
......
......@@ -7,7 +7,7 @@ import {
visitIframe,
} from "__support__/e2e/helpers";
const embeddingPage = "/admin/settings/embedding_in_other_applications";
const embeddingPage = "/admin/settings/embedding-in-other-applications";
const licenseUrl = "https://metabase.com/license/embedding";
const upgradeUrl = "https://www.metabase.com/upgrade/";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment