mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2026-01-27 00:13:30 +01:00
feat: demo flags (#1084)
This commit is contained in:
@@ -29,13 +29,16 @@ const { data: config } = useQuery({
|
||||
queryFn: (): Promise<Record<string, Array<String>>> => pb.send('/api/config', {})
|
||||
})
|
||||
|
||||
watch(config, (newConfig) => {
|
||||
if (!newConfig) return
|
||||
if (newConfig['flags'].includes('demo') || newConfig['flags'].includes('dev')) {
|
||||
mail.value = 'user@catalyst-soar.com'
|
||||
password.value = '1234567890'
|
||||
watch(
|
||||
() => config.value,
|
||||
() => {
|
||||
if (!config.value) return
|
||||
if (config.value['flags'].includes('demo') || config.value['flags'].includes('dev')) {
|
||||
mail.value = 'user@catalyst-soar.com'
|
||||
password.value = '1234567890'
|
||||
}
|
||||
}
|
||||
})
|
||||
)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<script setup lang="ts">
|
||||
<script setup lang="ts" xmlns="http://www.w3.org/1999/html">
|
||||
import ThreeColumn from '@/components/layout/ThreeColumn.vue'
|
||||
import ReactionDisplay from '@/components/reaction/ReactionDisplay.vue'
|
||||
import ReactionList from '@/components/reaction/ReactionList.vue'
|
||||
|
||||
Reference in New Issue
Block a user