mirror of
https://github.com/unraid/api.git
synced 2026-01-06 08:39:54 -06:00
feat: integrate cross-domain authentication to api
This commit is contained in:
@@ -38,11 +38,12 @@ watch(notifications, (newVal) => {
|
||||
const fetchType = ref<"UNREAD" | "ARCHIVED">("UNREAD");
|
||||
const setFetchType = (type: "UNREAD" | "ARCHIVED") => (fetchType.value = type);
|
||||
|
||||
const { unraidApiClient } = storeToRefs(useUnraidApiStore());
|
||||
const { unraidApiClient: maybeApi } = storeToRefs(useUnraidApiStore());
|
||||
|
||||
watch(unraidApiClient, async (newVal) => {
|
||||
if (newVal) {
|
||||
const apiResponse = await newVal.query({
|
||||
|
||||
watch(maybeApi, async (apiClient) => {
|
||||
if (apiClient) {
|
||||
const apiResponse = await apiClient.query({
|
||||
query: getNotifications,
|
||||
variables: {
|
||||
filter: {
|
||||
|
||||
Reference in New Issue
Block a user