2020-10-17 12:28:49 -07:00
|
|
|
<template>
|
|
|
|
<span
|
|
|
|
v-if="changed"
|
2021-02-01 10:08:36 -08:00
|
|
|
class="ModifiedIndicator"
|
2021-02-25 04:32:21 -08:00
|
|
|
>
|
2020-10-17 12:28:49 -07:00
|
|
|
<Popover
|
|
|
|
trigger="hover"
|
2021-02-25 04:32:21 -08:00
|
|
|
>
|
2021-04-07 12:42:34 -07:00
|
|
|
<template v-slot:trigger>
|
2021-02-01 10:08:36 -08:00
|
|
|
|
2021-02-25 04:32:21 -08:00
|
|
|
<FAIcon
|
|
|
|
icon="wrench"
|
2021-04-07 12:42:34 -07:00
|
|
|
:aria-label="$t('settings.setting_changed')"
|
2021-02-25 04:32:21 -08:00
|
|
|
/>
|
2021-04-07 12:42:34 -07:00
|
|
|
</template>
|
|
|
|
<template v-slot:content>
|
|
|
|
<div class="modified-tooltip">
|
|
|
|
{{ $t('settings.setting_changed') }}
|
|
|
|
</div>
|
|
|
|
</template>
|
2020-10-17 12:28:49 -07:00
|
|
|
</Popover>
|
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import Popover from 'src/components/popover/popover.vue'
|
2021-02-01 10:08:36 -08:00
|
|
|
import { library } from '@fortawesome/fontawesome-svg-core'
|
|
|
|
import { faWrench } from '@fortawesome/free-solid-svg-icons'
|
|
|
|
|
|
|
|
library.add(
|
|
|
|
faWrench
|
|
|
|
)
|
|
|
|
|
2020-10-17 12:28:49 -07:00
|
|
|
export default {
|
2021-02-25 04:32:21 -08:00
|
|
|
components: { Popover },
|
|
|
|
props: ['changed']
|
2020-10-17 12:28:49 -07:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
2021-02-01 10:08:36 -08:00
|
|
|
.ModifiedIndicator {
|
2020-10-17 12:28:49 -07:00
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.modified-tooltip {
|
|
|
|
margin: 0.5em 1em;
|
|
|
|
min-width: 10em;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|