tools.vue 852 Bytes
Newer Older
1
2
3
4
5
6
<template>
  <div class="row no-wrap justify-end col-xs-3">
    <Language
      :config="config"
    />

7
8
9
    <Color
      v-if="config.themes && projectColorsSet"
      :projectcolors="projectcolors"
10
      :config="config"
11
    />
12
13
14
15
16
17

    <Softwareinfo />
  </div>
</template>

<script>
18
import Color from '@/components/color.vue';
19
20
21
22
23
24
import Language from '@/components/language.vue';
import Softwareinfo from '@/components/softwareinfo.vue';

export default {
  name: 'Tools',
  components: {
25
    Color,
26
27
28
29
30
31
32
33
34
35
36
37
38
    Language,
    Softwareinfo,
  },
  props: {
    config: {
      type: Object,
      default: () => {},
    },
    projectcolors: {
      type: Object,
      default: () => {},
    },
  },
39
40
  computed: {
    projectColorsSet() {
41
      return !!Object.values(this.projectcolors).every((color) => color !== null && color !== '');
42
43
    },
  },
44
45
};
</script>