Skip to content

Commit

Permalink
Fleet listing pages are visible without authentication (minmatarfleet…
Browse files Browse the repository at this point in the history
…#443)

* Fleet listing pages are visible without authentication

* Replaced AuthButton for direct link
  • Loading branch information
beautifulmim authored Jun 5, 2024
1 parent 6e52572 commit f8e3e44
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
10 changes: 5 additions & 5 deletions frontend/app/src/pages/fleets/history.astro
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ try {
const FLEET_LIST_PARTIAL_URL = translatePath(`/partials/fleet_list_component?upcoming=${JSON.stringify(false)}`)
import { get_auth_url } from '@helpers/env'
import Viewport from '@layouts/Viewport.astro';
import PageWide from '@components/page/PageWide.astro';
Expand All @@ -45,9 +47,7 @@ import FlexInline from '@components/compositions/FlexInline.astro';
import FleetList from '@components/blocks/FleetList.astro';
import Button from '@components/blocks/Button.astro';
import ErrorRefetch from '@components/blocks/ErrorRefetch.astro';
import ButtonAuth from '@components/blocks/ButtonAuth.astro';
import ButtonStack from '@components/blocks/ButtonStack.astro';
import ComponentBlock from '@components/blocks/ComponentBlock.astro';
import AddIcon from '@components/icons/buttons/AddIcon.astro';
Expand Down Expand Up @@ -113,12 +113,12 @@ const page_title = t('fleets.history.page_title');
<FlexInline justification='space-between'>
<p>{t('authenticate_fleet_hint')}</p>
<ButtonStack>
<ButtonAuth
<Button
href={get_auth_url()}
size='sm'
dialog_title={t('upcoming_fleets_dialog_title')}
>
{t('authenticate')}
</ButtonAuth>
</Button>
</ButtonStack>
</FlexInline>
}
Expand Down
11 changes: 5 additions & 6 deletions frontend/app/src/pages/fleets/upcoming.astro
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ try {
const FLEET_LIST_PARTIAL_URL = translatePath(`/partials/fleet_list_component?upcoming=${JSON.stringify(true)}`)
import { get_auth_url } from '@helpers/env'
import Viewport from '@layouts/Viewport.astro';
import PageWide from '@components/page/PageWide.astro';
Expand All @@ -48,13 +50,10 @@ import FlexInline from '@components/compositions/FlexInline.astro';
import FleetList from '@components/blocks/FleetList.astro';
import Button from '@components/blocks/Button.astro';
import ErrorRefetch from '@components/blocks/ErrorRefetch.astro';
import ButtonAuth from '@components/blocks/ButtonAuth.astro';
import ButtonStack from '@components/blocks/ButtonStack.astro';
import ComponentBlock from '@components/blocks/ComponentBlock.astro';
import AddIcon from '@components/icons/buttons/AddIcon.astro';
const page_title = t('fleets.upcoming.page_title');
---

Expand Down Expand Up @@ -121,12 +120,12 @@ const page_title = t('fleets.upcoming.page_title');
<FlexInline justification='space-between'>
<p>{t('authenticate_fleet_hint')}</p>
<ButtonStack>
<ButtonAuth
<Button
href={get_auth_url()}
size='sm'
dialog_title={t('upcoming_fleets_dialog_title')}
>
{t('authenticate')}
</ButtonAuth>
</Button>
</ButtonStack>
</FlexInline>
}
Expand Down

0 comments on commit f8e3e44

Please sign in to comment.