mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-31 01:10:20 -06:00
Define dispatch
This commit is contained in:
8
changelog/unreleased/fix-choose-account-dialogue
Normal file
8
changelog/unreleased/fix-choose-account-dialogue
Normal file
@@ -0,0 +1,8 @@
|
||||
Bugfix: Fix choose account dialogue
|
||||
|
||||
Tags: konnectd
|
||||
|
||||
We've fixed the choose account dialogue in konnectd bug that the user hasn't been logged in after selecting account.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/846
|
||||
|
||||
@@ -88,10 +88,9 @@ generate: assets
|
||||
|
||||
# TODO find a docker container with go and yarn so we can properly build assets in ci
|
||||
#assets: assets/identifier/static assets/identifier/index.html
|
||||
assets: assets/identifier/static
|
||||
assets: static-assets
|
||||
|
||||
assets/identifier/static:
|
||||
mkdir -p assets/identifier/static
|
||||
static-assets:
|
||||
curl -o assets/identifier/static/logo.svg ${LOGO_URL}
|
||||
curl -o assets/identifier/static/favicon.ico ${FAVICON_URL}
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -32,9 +32,7 @@ const styles = theme => ({
|
||||
}
|
||||
});
|
||||
|
||||
function Chooseaccount(props) {
|
||||
const { loading, errors, classes, hello, history } = props;
|
||||
|
||||
function Chooseaccount({ loading, errors, classes, hello, history, dispatch }) {
|
||||
useEffect(() => {
|
||||
if ((!hello || !hello.state) && history.action !== 'PUSH') {
|
||||
history.replace(`/identifier${history.location.search}${history.location.hash}`);
|
||||
|
||||
Reference in New Issue
Block a user