Skip to content
Snippets Groups Projects
Commit 2d389cf6 authored by Kyle Doherty's avatar Kyle Doherty Committed by Tom Robinson
Browse files

clean up toast

parent cfd95b00
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,6 @@
composes: bordered rounded shadowed from "style";
composes: relative from "style";
composes: flex align-center from "style";
width: 320px;
background-color: #2e353b;
color: white;
}
......
......@@ -8,6 +8,7 @@ import S from "./UndoListing.css";
import { dismissUndo, performUndo } from "metabase/redux/undo";
import { getUndos } from "metabase/selectors/undo";
import { t } from "c-3po";
import Icon from "metabase/components/Icon";
import BodyComponent from "metabase/components/BodyComponent";
......
......@@ -3,13 +3,16 @@ import { Box, Flex, Subhead } from "rebass";
import cx from "classnames";
import { withRouter } from "react-router";
import { connect } from "react-redux";
import { t } from "c-3po";
import { jt } from "c-3po";
import * as Urls from "metabase/lib/urls";
import { normal } from "metabase/lib/colors";
import { DashboardApi } from "metabase/services";
import { addUndo, createUndo } from "metabase/redux/undo";
import Button from "metabase/components/Button";
import Icon from "metabase/components/Icon";
import Link from "metabase/components/Link";
import CollectionListLoader from "metabase/containers/CollectionListLoader";
......@@ -33,6 +36,7 @@ class DashboardMoveModal extends React.Component {
async _moveDashboard() {
const { addUndo, createUndo } = this.props;
const { selectedCollection } = this.state;
try {
await DashboardApi.update({
......@@ -45,7 +49,15 @@ class DashboardMoveModal extends React.Component {
message: () => (
<Flex align="center">
<Icon name="all" mr={1} color="white" />
{t`Dashboard moved to ${this.state.selectedCollection.name}`}
{jt`Dashboard moved to ${(
<Link
ml={1}
color={normal.blue}
to={Urls.collection(selectedCollection.id)}
>
{selectedCollection.name}
</Link>
)}`}
</Flex>
),
}),
......
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