UI overhaul, import fixes, fix user store
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { writable } from "svelte/store"
|
||||
import { fs_check_response, fs_path_url, type FSNode } from "./FilesystemAPI.svelte"
|
||||
import { fs_check_response, fs_path_url, type FSNode } from "./FilesystemAPI"
|
||||
import { loading_finish, loading_start } from "lib/Loading"
|
||||
import { get_user } from "lib/NovaAPI"
|
||||
|
||||
@@ -27,12 +27,7 @@ export const bookmarks_get = async (): Promise<Bookmark[]> => {
|
||||
try {
|
||||
loading_start()
|
||||
const user = await get_user()
|
||||
if (
|
||||
user.username === undefined ||
|
||||
user.username === "" ||
|
||||
user.subscription.filesystem_access === undefined ||
|
||||
user.subscription.filesystem_access === false
|
||||
) {
|
||||
if (user === null) {
|
||||
return []
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user