fixes list create bug new user

This commit is contained in:
Christian Beutel
2025-01-10 17:12:23 +01:00
parent ace5ebb607
commit 06b6bba31f
5 changed files with 24 additions and 10 deletions

View File

@@ -54,6 +54,8 @@ jobs:
# 1. Checkout the repository
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Setup Go
uses: actions/setup-go@v4
@@ -108,7 +110,8 @@ jobs:
# 1. Checkout the repository
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
# 2. Extract release notes from CHANGELOG.md
- name: Extract release notes
id: changelog
@@ -123,7 +126,7 @@ jobs:
in_section { print }
' CHANGELOG.md)
echo 'changelog<<EOF' >> $GITHUB_OUTPUT
echo $CHANGELOG >> $GITHUB_OUTPUT
printf "%s\n" "$CHANGELOG" >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
# 3. Create GitHub Release
@@ -131,7 +134,7 @@ jobs:
uses: actions/create-release@v1
with:
tag_name: ${{ needs.versioning.outputs.version }}
release_name: "v${{ needs.versioning.outputs.version }}"
release_name: "${{ needs.versioning.outputs.version }}"
body: ${{ steps.changelog.outputs.changelog }}
draft: false
prerelease: false

View File

@@ -5,7 +5,7 @@
- Improves server side rendering of certain components
## Translations
- Various additions across multiple languages (thanks to all contributers)
- Various additions across multiple languages (thanks to all contributors)
## Bug fixes
- Fixes a bug that hid the map on some sites on mobile devices

View File

@@ -9,7 +9,7 @@ description: What changed in the last patch?
- Improves server side rendering of certain components
### Translations
- Various additions across multiple languages (thanks to all contributers)
- Various additions across multiple languages (thanks to all contributors)
### Bug fixes
- Fixes a bug that hid the map on some sites on mobile devices

View File

@@ -74,7 +74,7 @@
...data.list,
public: data.list.id
? data.list.public
: $page.data.settings?.privacy.lists === "public",
: $page.data.settings?.privacy?.lists === "public",
},
extend: validator({
schema: ClientListCreateSchema,

View File

@@ -2,6 +2,7 @@
import { invalidateAll } from "$app/navigation";
import { page } from "$app/stores";
import Button from "$lib/components/base/button.svelte";
import type { DropdownItem } from "$lib/components/base/dropdown.svelte";
import type { SelectItem } from "$lib/components/base/select.svelte";
import ProfileShareModal from "$lib/components/profile/profile_share_modal.svelte";
import { follows_create, follows_delete } from "$lib/stores/follow_store";
@@ -15,13 +16,22 @@
let followLoading: boolean = false;
const profileLinks: SelectItem[] = [
{ text: $_("profile"), value: `/profile/${$page.params.id}` },
const profileLinks: DropdownItem[] = [
{
text: $_("profile"),
value: `/profile/${$page.params.id}`,
icon: "user",
},
{
text: $_("trail", { values: { n: 2 } }),
value: `/profile/${$page.params.id}/trails`,
icon: "route",
},
{
text: $_("statistics"),
value: `/profile/${$page.params.id}/stats`,
icon: "chart-pie",
},
{ text: $_("statistics"), value: `/profile/${$page.params.id}/stats` },
];
$: activeIndex = profileLinks.findIndex(
@@ -113,7 +123,8 @@
<a
class="block mx-2 px-4 py-3 my-1 cursor-pointer hover:bg-menu-item-background-hover focus:bg-menu-item-background-focus transition-colors rounded-md"
class:bg-menu-item-background-hover={i == activeIndex}
href={link.value}>{link.text}</a
href={link.value}
><i class="fa fa-{link.icon} mr-2"></i>{link.text}</a
>
{/each}
</div>