Skip to content

Commit

Permalink
Update Breadcrumb back button on first page, next button on last page
Browse files Browse the repository at this point in the history
Show that no further steps back or forward are possible in the context by request of UX team
  • Loading branch information
linearcombination committed Jan 3, 2024
1 parent 56aefa6 commit 105aaf5
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions frontend/src/components/WizardBreadcrumb.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
import { push } from 'svelte-spa-router'
import { langCodesStore, langCountStore } from '../stores/LanguagesStore'
import { bookCountStore } from '../stores/BooksStore'
import { resourceTypesStore, resourceTypesCountStore } from '../stores/ResourceTypesStore'
import {
resourceTypesStore,
resourceTypesCountStore
} from '../stores/ResourceTypesStore'
import {
getResourceTypeLangCode,
resetStores,
Expand Down Expand Up @@ -120,7 +123,10 @@
<BackButton url="/resource_types" />
{:else}
<button
class="flex items-center bg-white border border-[#E5E8EB] text-[#33445c] hover:bg-[#efefef] py-2 px-4 rounded-md"
class="flex items-center bg-white border border-[#E5E8EB]
text-[#33445c] py-2 px-4
rounded-md cursor-not-allowed"
disabled
>
<svg
width="24"
Expand All @@ -145,7 +151,9 @@
<NextButton func={submitResourceTypes} />
{:else}
<button
class="flex items-center bg-white border border-[#E5E8EB] text-[#33445c] hover:bg-[#efefef] py-2 px-4 rounded-md ml-2"
class="flex items-center bg-white border border-[#E5E8EB]
text-[#33445c] py-2 px-4 rounded-md ml-2 cursor-not-allowed"
disabled
>
<span class="hidden sm:inline">Next</span>
<svg
Expand Down

0 comments on commit 105aaf5

Please sign in to comment.