update branch with recent develop changes (FA, added settings)
This commit is contained in:
parent
8958f386be
commit
66f3e72b54
5 changed files with 22 additions and 20 deletions
51
src/components/settings_modal/helpers/modified_indicator.vue
Normal file
51
src/components/settings_modal/helpers/modified_indicator.vue
Normal file
|
@ -0,0 +1,51 @@
|
|||
<template>
|
||||
<span
|
||||
v-if="changed"
|
||||
class="ModifiedIndicator"
|
||||
>
|
||||
<Popover
|
||||
trigger="hover"
|
||||
>
|
||||
<span slot="trigger">
|
||||
|
||||
<FAIcon
|
||||
icon="wrench"
|
||||
/>
|
||||
</span>
|
||||
<div
|
||||
class="modified-tooltip"
|
||||
slot="content"
|
||||
>
|
||||
{{ $t('settings.setting_changed') }}
|
||||
</div>
|
||||
</Popover>
|
||||
</span>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Popover from 'src/components/popover/popover.vue'
|
||||
import { library } from '@fortawesome/fontawesome-svg-core'
|
||||
import { faWrench } from '@fortawesome/free-solid-svg-icons'
|
||||
|
||||
library.add(
|
||||
faWrench
|
||||
)
|
||||
|
||||
export default {
|
||||
props: ['changed'],
|
||||
components: { Popover }
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.ModifiedIndicator {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
|
||||
.modified-tooltip {
|
||||
margin: 0.5em 1em;
|
||||
min-width: 10em;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue