Scroll to bottom + cookie fix -> staging
@@ -225,6 +225,32 @@ export default class Logs extends Component<PropsType, StateType> {
System
</Tab>
</LogTabs>
+ <Options>
+ <Scroll
+ onClick={() => {
+ this.setState({ scroll: !this.state.scroll }, () => {
+ if (this.state.scroll) {
+ this.scrollToBottom(true);
+ }
+ });
+ }}
+ >
+ <input
+ type="checkbox"
+ checked={this.state.scroll}
+ onChange={() => {}}
+ />
+ Scroll to Bottom
+ </Scroll>
+ <Refresh
+ this.refreshLogs();
+ <i className="material-icons">autorenew</i>
+ Refresh
+ </Refresh>
+ </Options>
</LogStreamAlt>
);
}
@@ -124,7 +124,7 @@ func NewStore(repo *repository.Repository, conf config.ServerConf) (*PGStore, er
MaxAge: 86400 * 30,
Secure: true,
HttpOnly: true,
- SameSite: http.SameSiteStrictMode,
+ SameSite: http.SameSiteLaxMode,
},
Repo: repo,