aboutsummaryrefslogtreecommitdiff
path: root/src/components/settings_modal/helpers/profile_setting_indicator.vue
blob: d160781b1a4182e2f49bf0a971dcbf2d63e6022d (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
50
51
<template>
  <span
    v-if="isProfile"
    class="ProfileSettingIndicator"
  >
    <Popover
      trigger="hover"
    >
      <template #trigger>
        &nbsp;
        <FAIcon
          icon="server"
          :aria-label="$t('settings.setting_server_side')"
        />
      </template>
      <template #content>
        <div class="profilesetting-tooltip">
          {{ $t('settings.setting_server_side') }}
        </div>
      </template>
    </Popover>
  </span>
</template>

<script>
import Popover from 'src/components/popover/popover.vue'
import { library } from '@fortawesome/fontawesome-svg-core'
import { faServer } from '@fortawesome/free-solid-svg-icons'

library.add(
  faServer
)

export default {
  components: { Popover },
  props: ['isProfile']
}
</script>

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

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