fix issues with auth (#1247)
This commit is contained in:
parent
e2fb8827a7
commit
04915cc65a
@ -118,7 +118,7 @@
|
|||||||
>
|
>
|
||||||
<VersionIcon />
|
<VersionIcon />
|
||||||
<nuxt-link
|
<nuxt-link
|
||||||
:to="getVersionLink(notif.extra_data.project, notif.extra_data.version.name)"
|
:to="getVersionLink(notif.extra_data.project, notif.extra_data.version)"
|
||||||
class="text-link no-underline"
|
class="text-link no-underline"
|
||||||
>
|
>
|
||||||
{{ notif.extra_data.version.name }}
|
{{ notif.extra_data.version.name }}
|
||||||
|
|||||||
@ -126,6 +126,11 @@ export async function fetchNotifications() {
|
|||||||
|
|
||||||
export function groupNotifications(notifications, includeRead = false) {
|
export function groupNotifications(notifications, includeRead = false) {
|
||||||
const grouped = []
|
const grouped = []
|
||||||
|
|
||||||
|
for (const notification of notifications) {
|
||||||
|
notification.grouped_notifs = []
|
||||||
|
}
|
||||||
|
|
||||||
for (const notification of notifications.filter((notif) => includeRead || !notif.read)) {
|
for (const notification of notifications.filter((notif) => includeRead || !notif.read)) {
|
||||||
// Group notifications of the same thread or project id
|
// Group notifications of the same thread or project id
|
||||||
if (notification.body) {
|
if (notification.body) {
|
||||||
|
|||||||
@ -142,6 +142,9 @@ const route = useRoute()
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 25.5rem) {
|
@media screen and (max-width: 25.5rem) {
|
||||||
|
width: auto;
|
||||||
|
margin: 1rem;
|
||||||
|
|
||||||
.third-party .btn {
|
.third-party .btn {
|
||||||
grid-column: 1 / 3;
|
grid-column: 1 / 3;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -33,7 +33,11 @@
|
|||||||
type="password"
|
type="password"
|
||||||
placeholder="Confirm password"
|
placeholder="Confirm password"
|
||||||
/>
|
/>
|
||||||
<Checkbox v-model="subscribe" class="subscribe-btn" label="Subscribe updates about Modrinth" />
|
<Checkbox
|
||||||
|
v-model="subscribe"
|
||||||
|
class="subscribe-btn"
|
||||||
|
label="Subscribe to updates about Modrinth"
|
||||||
|
/>
|
||||||
<p>
|
<p>
|
||||||
By creating an account, you agree to Modrinth's
|
By creating an account, you agree to Modrinth's
|
||||||
<nuxt-link to="/legal/terms" class="text-link">terms</nuxt-link> and
|
<nuxt-link to="/legal/terms" class="text-link">terms</nuxt-link> and
|
||||||
@ -43,7 +47,7 @@
|
|||||||
Create account <RightArrowIcon />
|
Create account <RightArrowIcon />
|
||||||
</button>
|
</button>
|
||||||
<p>
|
<p>
|
||||||
Already have an account yet?
|
Already have an account?
|
||||||
<nuxt-link
|
<nuxt-link
|
||||||
class="text-link"
|
class="text-link"
|
||||||
:to="`/auth/sign-in${route.query.redirect ? `?redirect=${route.query.redirect}` : ''}`"
|
:to="`/auth/sign-in${route.query.redirect ? `?redirect=${route.query.redirect}` : ''}`"
|
||||||
|
|||||||
@ -5,7 +5,11 @@
|
|||||||
Thank you for creating an account. You can now follow and create projects, receive updates
|
Thank you for creating an account. You can now follow and create projects, receive updates
|
||||||
about your favorite projects, and more!
|
about your favorite projects, and more!
|
||||||
</p>
|
</p>
|
||||||
<Checkbox v-model="subscribe" class="subscribe-btn" label="Subscribe updates about Modrinth" />
|
<Checkbox
|
||||||
|
v-model="subscribe"
|
||||||
|
class="subscribe-btn"
|
||||||
|
label="Subscribe to updates about Modrinth"
|
||||||
|
/>
|
||||||
<button class="btn btn-primary continue-btn" @click="continueSignUp">Continue</button>
|
<button class="btn btn-primary continue-btn" @click="continueSignUp">Continue</button>
|
||||||
<p>
|
<p>
|
||||||
By creating an account, you agree to Modrinth's
|
By creating an account, you agree to Modrinth's
|
||||||
|
|||||||
@ -25,7 +25,7 @@
|
|||||||
<nuxt-link to="/mods" class="iconified-button brand-button"> Discover mods </nuxt-link>
|
<nuxt-link to="/mods" class="iconified-button brand-button"> Discover mods </nuxt-link>
|
||||||
<nuxt-link
|
<nuxt-link
|
||||||
v-if="!auth.user"
|
v-if="!auth.user"
|
||||||
to="sign-up"
|
to="/auth/sign-up"
|
||||||
class="iconified-button outline-button"
|
class="iconified-button outline-button"
|
||||||
rel="noopener nofollow"
|
rel="noopener nofollow"
|
||||||
>
|
>
|
||||||
|
|||||||
@ -255,9 +255,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<p></p>
|
<p></p>
|
||||||
<div class="input-group push-right">
|
<div class="input-group push-right">
|
||||||
<button class="iconified-button brand-button" @click="$refs.manageProvidersModal.hide()">
|
<button class="iconified-button" @click="$refs.manageProvidersModal.hide()">
|
||||||
<CheckIcon />
|
<XIcon />
|
||||||
Finish editing
|
Close
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user