Making Share Target functional
This commit is contained in:
@ -6,7 +6,7 @@ import Navigation from "../../../navigation";
|
||||
export default class SharePage extends Page<{ state: any }, { vault: string }> {
|
||||
text: string;
|
||||
componentWillMount() {
|
||||
let { title, text, url } = Navigation.getQuery() || {} as any;
|
||||
let { title, text, url } = this.props.state;
|
||||
let note = "";
|
||||
if (title) {
|
||||
note += title + "\n"
|
||||
@ -24,7 +24,9 @@ export default class SharePage extends Page<{ state: any }, { vault: string }> {
|
||||
|
||||
render() {
|
||||
return <VaultsPage state={undefined} selectVault onSelected={vault => {
|
||||
Navigation.setPage("/vault", { id: vault }, { entry: "true", note: this.text }, true);
|
||||
Navigation.setPage("/", undefined, undefined, true);
|
||||
Navigation.setPage("/vault", { id: vault });
|
||||
Navigation.setPage("/vault", { id: vault }, { entry: "true", note: this.text });
|
||||
}} />
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user