Squashed 'spiffworkflow-frontend/' changes from bf2d2a224..7f1f0b359

7f1f0b359 Merge branch 'main' of github.com:sartography/spiffworkflow-frontend
03499ae0c add the redirect url back into the call to connector proxy
c0199ebf2 Merge pull request #91 from sartography/bugfix/style-of-date-selection
96880aee2 comment
63c24e024 Json Web Form CSS Fix - Bootsrtrap now requires that each li have a "list-inline-item", also have a PR  in on this with the react-jsonschema-form.

git-subtree-dir: spiffworkflow-frontend
git-subtree-split: 7f1f0b3596b567d705b159b1df975113b75a2825
This commit is contained in:
burnettk 2022-10-19 15:17:20 -04:00
parent 75729ba3df
commit f930f96d1b
2 changed files with 16 additions and 1 deletions

View File

@ -86,3 +86,11 @@ span.bjs-crumb {
.markdown tbody tr:nth-of-type(odd) {
background: rgba(0,0,0,.05);
}
/* Json Web Form CSS Fix - Bootstrap now requries that each li have a "list-inline-item." Also have a PR
in on this with the react-jsonschema-form repo. This is just a patch fix to allow date inputs to layout a little more cleanly */
.list-inline>li {
display: inline-block;
padding-right: 5px;
padding-left: 5px;
}

View File

@ -3,6 +3,7 @@ import { Table } from 'react-bootstrap';
import ErrorContext from '../contexts/ErrorContext';
import { AuthenticationItem } from '../interfaces';
import HttpService from '../services/HttpService';
import UserService from '../services/UserService';
export default function AuthenticationList() {
const setErrorMessage = (useContext as any)(ErrorContext)[1];
@ -13,11 +14,13 @@ export default function AuthenticationList() {
const [connectProxyBaseUrl, setConnectProxyBaseUrl] = useState<string | null>(
null
);
const [redirectUrl, setRedirectUrl] = useState<string | null>(null);
useEffect(() => {
const processResult = (result: any) => {
setAuthenticationList(result.results);
setConnectProxyBaseUrl(result.connector_proxy_base_url);
setRedirectUrl(result.redirect_url);
};
HttpService.makeCallToBackend({
path: `/authentications`,
@ -34,7 +37,11 @@ export default function AuthenticationList() {
<td>
<a
data-qa="authentication-create-link"
href={`${connectProxyBaseUrl}/v1/auths/${row.id}`}
href={`${connectProxyBaseUrl}/v1/auth/${
row.id
}?redirect_url=${redirectUrl}/${
row.id
}?token=${UserService.getAuthToken()}`}
>
{row.id}
</a>