Merged in feat/SW-3232-site-config-alerts (pull request #2671)
feat(SW-3232): update alert schema * feat(SW-3232): update alert schema Approved-by: Erik Tiekstra
This commit is contained in:
@@ -81,6 +81,7 @@ fragment Alert on Alert {
|
||||
json
|
||||
}
|
||||
}
|
||||
visible_on
|
||||
}
|
||||
|
||||
fragment AlertRef on Alert {
|
||||
@@ -130,4 +131,5 @@ fragment AlertRef on Alert {
|
||||
system {
|
||||
...System
|
||||
}
|
||||
visible_on
|
||||
}
|
||||
|
||||
@@ -6,11 +6,13 @@ query GetSiteConfig($locale: String!) {
|
||||
all_site_config(limit: 1, locale: $locale) {
|
||||
items {
|
||||
sitewide_alert {
|
||||
booking_widget_disabled
|
||||
alertConnection {
|
||||
edges {
|
||||
node {
|
||||
...Alert
|
||||
alerts {
|
||||
booking_widget_disabled
|
||||
alertConnection {
|
||||
edges {
|
||||
node {
|
||||
...Alert
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -23,10 +25,12 @@ query GetSiteConfigRef($locale: String!) {
|
||||
all_site_config(limit: 1, locale: $locale) {
|
||||
items {
|
||||
sitewide_alert {
|
||||
alertConnection {
|
||||
edges {
|
||||
node {
|
||||
...AlertRef
|
||||
alerts {
|
||||
alertConnection {
|
||||
edges {
|
||||
node {
|
||||
...AlertRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user