Sha256: 66f18c5028a84eb1f3e2a426d5f500ca3d36441a9002b08c67f32e7d04f35ff6

Contents?: true

Size: 861 Bytes

Versions: 14

Compression:

Stored size: 861 Bytes

Contents

<template>
  <Loading v-if="getConfigsTask.isRunning"></Loading>

  <ErrorMessage v-if="getConfigsTask.isError" :error="getConfigsTask.last?.error"></ErrorMessage>

  <Configs :configs="getConfigsTask.last.value" v-if="getConfigsTask.last?.value"></Configs>
</template>

<script lang="ts">
import { defineComponent, onMounted } from "vue"

import { generateGetConfigsTask } from "@/api-helper"
import Configs from "@/components/config/Configs.vue"
import ErrorMessage from "@/components/ErrorMessage.vue"
import Loading from "@/components/Loading.vue"

export default defineComponent({
  name: "ConfigsWrapper",
  components: {
    Configs,
    Loading,
    ErrorMessage
  },
  setup() {
    const getConfigsTask = generateGetConfigsTask()

    onMounted(async () => {
      await getConfigsTask.perform()
    })

    return { getConfigsTask }
  }
})
</script>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
mihari-5.5.0 frontend/src/components/config/ConfigsWrapper.vue
mihari-5.4.9 frontend/src/components/config/ConfigsWrapper.vue
mihari-5.4.8 frontend/src/components/config/ConfigsWrapper.vue
mihari-5.4.7 frontend/src/components/config/ConfigsWrapper.vue
mihari-5.4.6 frontend/src/components/config/ConfigsWrapper.vue
mihari-5.4.5 frontend/src/components/config/ConfigsWrapper.vue
mihari-5.4.4 frontend/src/components/config/ConfigsWrapper.vue
mihari-5.4.3 frontend/src/components/config/ConfigsWrapper.vue
mihari-5.4.2 frontend/src/components/config/ConfigsWrapper.vue
mihari-5.4.1 frontend/src/components/config/ConfigsWrapper.vue
mihari-5.4.0 frontend/src/components/config/ConfigsWrapper.vue
mihari-5.3.2 frontend/src/components/config/ConfigsWrapper.vue
mihari-5.3.1 frontend/src/components/config/ConfigsWrapper.vue
mihari-5.3.0 frontend/src/components/config/ConfigsWrapper.vue