Skip to content

Quick and dirty support for custom welcome pages.#2575

Merged
dbkr merged 9 commits intodevelopfrom
matthew/homepages
Feb 7, 2017
Merged

Quick and dirty support for custom welcome pages.#2575
dbkr merged 9 commits intodevelopfrom
matthew/homepages

Conversation

@ara4n
Copy link
Copy Markdown
Member

@ara4n ara4n commented Nov 13, 2016

No description provided.

console.log(error);
this.setState({ page: "Couldn't load home page" });
}
).then(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/then/done/

componentWillMount: function() {
fetch(this.props.config.home_page).then(
(response)=>{
return response.text();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NB. that this could be an error response from the server, although arguably it makes about as much sense to display the error page from the server as our own error message.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could default to some default message, "Sorry, your welcome page could not be loaded"?

Comment thread home-geektime.html
Riot is built on <a href="https://matrix.org">Matrix</a> - a new open protocol for interoperable and secure decentralised communication.
<br/>
To learn more, head over to <a href="https://matrix.org">Matrix.org</a> - and to better understand Riot, check out the official <a href="https://riot.im">Riot Website</a>.
</p>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice if this could be versioned somewhere else rather than living with the rest of the vector source (especially in the root dir). Ditto for the images.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It shall be kept on the RTS, so that solves that!

@dbkr dbkr assigned ara4n and unassigned dbkr Nov 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants