Commit cbc415a5 authored by MaxSol1's avatar MaxSol1
Browse files

spelling

parent 77257b5b
......@@ -187,7 +187,7 @@ export function CheckImage({options, dashboard, slug}) {
const initState = async () => {
const res = await meerkat.getIcingaObjectState(options.objectType, options.filter, dashboard);
if (res === false) {
window.flash('This dashbaord isnt updating', 'error');
window.flash('This dashboard isn't updating', 'error');
}
const state = icingaResultCodeToCheckState(options.objectType, res.MaxState);
res.Acknowledged ? setAcknowledged('ack') : setAcknowledged("");
......@@ -203,7 +203,7 @@ export function CheckImage({options, dashboard, slug}) {
const updateState = async () => {
meerkat.getDashboard(slug).then(async d => {
if (d === false) {
window.flash('This dashbaord isnt updating', 'error');
window.flash('This dashboard isn't updating', 'error');
}
dash = await d
......@@ -218,7 +218,7 @@ export function CheckImage({options, dashboard, slug}) {
const muteAlerts = () => {
meerkat.getDashboard(slug).then(async d => {
if (d === false) {
window.flash('This dashbaord isnt updating', 'error');
window.flash('This dashboard isn't updating', 'error');
}
if (options.muteAlerts || d.globalMute) {
o.volume = 0.0; w.volume = 0.0; c.volume = 0.0; u.volume = 0.0; up.volume = 0.0; dow.volume = 0.0;
......
......@@ -145,7 +145,7 @@ export function CheckLine({options, dashboard, slug}) {
const initState = async () => {
const res = await meerkat.getIcingaObjectState(options.objectType, options.filter, dashboard);
if (res === false) {
window.flash('This dashbaord isnt updating', 'error');
window.flash('This dashboard isn't updating', 'error');
}
const state = icingaResultCodeToCheckState(options.objectType, res.MaxState);
res.Acknowledged ? setAcknowledged("ack") : setAcknowledged("");
......@@ -161,7 +161,7 @@ export function CheckLine({options, dashboard, slug}) {
const updateState = async () => {
meerkat.getDashboard(slug).then(async d => {
if (d === false) {
window.flash('This dashbaord isnt updating', 'error');
window.flash('This dashboard isn't updating', 'error');
}
dash = await d
......@@ -176,7 +176,7 @@ export function CheckLine({options, dashboard, slug}) {
const muteAlerts = () => {
meerkat.getDashboard(slug).then(async d => {
if (d === false) {
window.flash('This dashbaord isnt updating', 'error');
window.flash('This dashboard isn't updating', 'error');
}
if (options.muteAlerts || d.globalMute) {
o.volume = 0.0; w.volume = 0.0; c.volume = 0.0; u.volume = 0.0; up.volume = 0.0; dow.volume = 0.0;
......
......@@ -119,7 +119,7 @@ export function CheckSVG({options, dashboard, slug}) {
const initState = async () => {
const res = await meerkat.getIcingaObjectState(options.objectType, options.filter, dashboard);
if (res === false) {
window.flash('This dashbaord isnt updating', 'error');
window.flash('This dashboard isn't updating', 'error');
}
const state = icingaResultCodeToCheckState(options.objectType, res.MaxState);
res.Acknowledged ? setAcknowledged("ack") : setAcknowledged("");
......@@ -135,7 +135,7 @@ export function CheckSVG({options, dashboard, slug}) {
const updateState = async () => {
meerkat.getDashboard(slug).then(async d => {
if (d === false) {
window.flash('This dashbaord isnt updating', 'error');
window.flash('This dashboard isn't updating', 'error');
}
dash = await d
......@@ -150,7 +150,7 @@ export function CheckSVG({options, dashboard, slug}) {
const muteAlerts = () => {
meerkat.getDashboard(slug).then(async d => {
if (d === false) {
window.flash('This dashbaord isnt updating', 'error');
window.flash('This dashboard isn't updating', 'error');
}
if (options.muteAlerts || d.globalMute) {
o.volume = 0.0; w.volume = 0.0; c.volume = 0.0; u.volume = 0.0; up.volume = 0.0; dow.volume = 0.0;
......
......@@ -17,9 +17,8 @@ async function fetchHandler(string) {
try {
const res = await fetch(string);
if (res.status !== 200) {
return false;
return 3;
}
return res.json();
} catch (e) {
return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment