PLT-7116/PLT-7126 Some final release fixes (#6933)
* Some final release fixes * Fix team switching with image in channel bug
Этот коммит содержится в:
коммит произвёл
Saturnino Abril
родитель
b645bd3211
Коммит
764ff4cb64
@@ -77,15 +77,15 @@ export default class SamlSettings extends AdminSettings {
|
|||||||
AdminActions.samlCertificateStatus(
|
AdminActions.samlCertificateStatus(
|
||||||
(data) => {
|
(data) => {
|
||||||
const files = {};
|
const files = {};
|
||||||
if (!data.IdpCertificateFile) {
|
if (!data.idp_certificate_file) {
|
||||||
files.idpCertificateFile = '';
|
files.idpCertificateFile = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!data.PublicCertificateFile) {
|
if (!data.public_certificate_file) {
|
||||||
files.publicCertificateFile = '';
|
files.publicCertificateFile = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!data.PrivateKeyFile) {
|
if (!data.private_key_file) {
|
||||||
files.privateKeyFile = '';
|
files.privateKeyFile = '';
|
||||||
}
|
}
|
||||||
this.setState(files);
|
this.setState(files);
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ export default class MarkdownImage extends React.PureComponent {
|
|||||||
|
|
||||||
waitForHeight = () => {
|
waitForHeight = () => {
|
||||||
if (this.refs.image.height) {
|
if (this.refs.image.height) {
|
||||||
postListScrollChange();
|
setTimeout(postListScrollChange, 0);
|
||||||
|
|
||||||
this.heightTimeout = 0;
|
this.heightTimeout = 0;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -181,6 +181,10 @@ export default class PostList extends React.PureComponent {
|
|||||||
const posts = this.props.posts;
|
const posts = this.props.posts;
|
||||||
const postList = this.refs.postlist;
|
const postList = this.refs.postlist;
|
||||||
|
|
||||||
|
if (!postList) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Scroll to focused post on first load
|
// Scroll to focused post on first load
|
||||||
const focusedPost = this.refs[this.props.focusedPostId];
|
const focusedPost = this.refs[this.props.focusedPostId];
|
||||||
if (focusedPost && this.props.posts) {
|
if (focusedPost && this.props.posts) {
|
||||||
@@ -262,7 +266,7 @@ export default class PostList extends React.PureComponent {
|
|||||||
|
|
||||||
checkBottom = () => {
|
checkBottom = () => {
|
||||||
if (!this.refs.postlist) {
|
if (!this.refs.postlist) {
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// No scroll bar so we're at the bottom
|
// No scroll bar so we're at the bottom
|
||||||
@@ -329,7 +333,12 @@ export default class PostList extends React.PureComponent {
|
|||||||
handleScroll = () => {
|
handleScroll = () => {
|
||||||
// Only count as user scroll if we've already performed our first load scroll
|
// Only count as user scroll if we've already performed our first load scroll
|
||||||
this.hasScrolled = this.hasScrolledToNewMessageSeparator || this.hasScrolledToFocusedPost;
|
this.hasScrolled = this.hasScrolledToNewMessageSeparator || this.hasScrolledToFocusedPost;
|
||||||
|
if (!this.refs.postlist) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.previousScrollTop = this.refs.postlist.scrollTop;
|
this.previousScrollTop = this.refs.postlist.scrollTop;
|
||||||
|
|
||||||
if (this.refs.postlist.scrollHeight === this.previousScrollHeight) {
|
if (this.refs.postlist.scrollHeight === this.previousScrollHeight) {
|
||||||
this.atBottom = this.checkBottom();
|
this.atBottom = this.checkBottom();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5043,7 +5043,7 @@ math-expression-evaluator@^1.2.14:
|
|||||||
|
|
||||||
mattermost-redux@mattermost/mattermost-redux#webapp-4.0:
|
mattermost-redux@mattermost/mattermost-redux#webapp-4.0:
|
||||||
version "0.0.1"
|
version "0.0.1"
|
||||||
resolved "https://codeload.github.com/mattermost/mattermost-redux/tar.gz/2f816b1b1374f7d10f7c160cd392f323d8cebcc6"
|
resolved "https://codeload.github.com/mattermost/mattermost-redux/tar.gz/a68c49c57130ed64e5a8fb3bdbd004ced437790b"
|
||||||
dependencies:
|
dependencies:
|
||||||
deep-equal "1.0.1"
|
deep-equal "1.0.1"
|
||||||
harmony-reflect "1.5.1"
|
harmony-reflect "1.5.1"
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user