Skip to content

Commit 25a6502

Browse files
authored
fix: alerts default route (openobserve#899)
1 parent 149f3a7 commit 25a6502

File tree

2 files changed

+15
-20
lines changed

2 files changed

+15
-20
lines changed

web/src/views/AppAlerts.vue

+15-18
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,7 @@ export default defineComponent({
110110
});
111111

112112
const redirectRoute = () => {
113-
if (
114-
router.currentRoute.value.name === "alerts" &&
115-
store.state.selectedOrganization.status == "active"
116-
) {
113+
if (router.currentRoute.value.name === "alerts") {
117114
router.push({
118115
name: "alertList",
119116
query: {
@@ -123,22 +120,22 @@ export default defineComponent({
123120
}
124121
};
125122
const getTemplates = () => {
126-
if (store.state.selectedOrganization.status == "active") {
127-
templateService
128-
.list({
129-
org_identifier: store.state.selectedOrganization.identifier,
130-
})
131-
.then((res) => (templates.value = res.data));
132-
}
123+
// if (store.state.selectedOrganization.status == "active") {
124+
templateService
125+
.list({
126+
org_identifier: store.state.selectedOrganization.identifier,
127+
})
128+
.then((res) => (templates.value = res.data));
129+
// }
133130
};
134131
const getDestinations = () => {
135-
if (store.state.selectedOrganization.status == "active") {
136-
destinationService
137-
.list({
138-
org_identifier: store.state.selectedOrganization.identifier,
139-
})
140-
.then((res) => (destinations.value = res.data));
141-
}
132+
// if (store.state.selectedOrganization.status == "active") {
133+
destinationService
134+
.list({
135+
org_identifier: store.state.selectedOrganization.identifier,
136+
})
137+
.then((res) => (destinations.value = res.data));
138+
// }
142139
};
143140

144141
return {

web/src/views/Ingestion.vue

-2
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ export default defineComponent({
147147
const ingestTabType = ref("");
148148

149149
onBeforeMount(() => {
150-
console.log("on before mount");
151150
const ingestRoutes = ["ingestLogs", "ingestTraces", "ingestMetrics"];
152151
const logRoutes = [
153152
"curl",
@@ -186,7 +185,6 @@ export default defineComponent({
186185
organizationsService
187186
.get_organization_passcode(store.state.selectedOrganization.identifier)
188187
.then((res) => {
189-
console.log(res.data);
190188
if (res.data.data.token == "") {
191189
q.notify({
192190
type: "negative",

0 commit comments

Comments
 (0)