summaryrefslogtreecommitdiff
path: root/electron/src/renderer/components/InstallPalettes.vue
blob: 73fd2865390c3cf419873f17699517d6e314ea88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<template>
  <div>
    <font-awesome-icon icon="palette" class="info-icon"/>
    <p>
      <translate>Ink/Stitch can install palettes for Inkscape matching the thread colors from popular machine embroidery thread manufacturers.
      </translate>
    </p>
    <p>
      <translate>Choose Inkscape directory</translate>
      <input v-bind:value="path"/>
    </p>
    <button v-on:click="install">
      <translate>Install</translate>
    </button>
    <button v-on:click="cancel">
      <translate>Cancel</translate>
    </button>
  </div>
</template>

<script>
const inkStitch = require("../../lib/api")

export default {
  name: "InstallPalettes",
  data: function () {
    return {
      path: "",
    }
  },
  methods: {
    install() {
      alert("install button clicked")
    },
    cancel() {
      alert("cancel button clicked")
    }
  },
  created: function () {
    inkStitch.get("/install/default-path").then(response => {
      this.path = response.data
    })
  }
}
</script>

<style scoped>

</style>