aboutsummaryrefslogtreecommitdiff
path: root/src/components/settings_modal/helpers/modified_icon.vue
blob: 27e0a9c5ef3d9db87876f957783d5a36fdce9a29 (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
<template>
  <span
    v-if="changed"
    class="ModifiedIcon"
    >
    <Popover
      trigger="hover"
      >
      <i
        slot="trigger"
        class="icon icon-wrench"
        />
      <div
        class="modified-tooltip"
        slot="content"
        >
      {{ $t('settings.setting_changed') }}
      </div>
    </Popover>
  </span>
</template>

<script>
import Popover from 'src/components/popover/popover.vue'
export default {
  props: ['changed'],
  components: { Popover }
}
</script>

<style lang="scss">
.ModifiedIcon {
  display: inline-block;
  position: relative;

  .icon {
    display: inline-block;
  }

  .modified-tooltip {
    margin: 0.5em 1em;
    min-width: 10em;
    text-align: center;
  }
}
</style>