This commit is contained in:
Henry Jameson 2023-03-21 22:26:11 +02:00
parent 9a97e0d196
commit 6b40fc9895
4 changed files with 15 additions and 19 deletions

View File

@ -14,7 +14,6 @@ library.add(
) )
const InstanceTab = { const InstanceTab = {
data () {},
components: { components: {
BooleanSetting, BooleanSetting,
ChoiceSetting, ChoiceSetting,

View File

@ -13,26 +13,25 @@
class="label" class="label"
> >
<template v-if="backendDescription"> <template v-if="backendDescription">
{{ backendDescriptionLabel + ' ' }} {{ backendDescriptionLabel }}
</template> </template>
<template v-else> <template v-else>
<slot /> <slot />
</template> </template>
</span> </span>
{{ ' ' }}
<ModifiedIndicator
:changed="isChanged"
:onclick="reset"
/>
<ProfileSettingIndicator :is-profile="isProfileSetting" />
<DraftButtons />
<p
v-if="backendDescriptionDescription"
class="setting-description"
>
{{ backendDescriptionDescription + ' ' }}
</p>
</Checkbox> </Checkbox>
<ModifiedIndicator
:changed="isChanged"
:onclick="reset"
/>
<ProfileSettingIndicator :is-profile="isProfileSetting" />
<DraftButtons />
<p
v-if="backendDescriptionDescription"
class="setting-description"
>
{{ backendDescriptionDescription + ' ' }}
</p>
</label> </label>
</template> </template>

View File

@ -5,13 +5,13 @@
class="DraftButtons" class="DraftButtons"
> >
<Popover <Popover
v-if="$parent.isDirty"
trigger="hover" trigger="hover"
:trigger-attrs="{ 'aria-label': $t('settings.commit_value_tooltip') }" :trigger-attrs="{ 'aria-label': $t('settings.commit_value_tooltip') }"
> >
<template #trigger> <template #trigger>
&nbsp; &nbsp;
<button <button
v-if="$parent.isDirty"
class="button button-default btn" class="button button-default btn"
type="button" type="button"
:title="$t('settings.commit_value')" :title="$t('settings.commit_value')"
@ -27,13 +27,13 @@
</template> </template>
</Popover> </Popover>
<Popover <Popover
v-if="$parent.isDirty"
trigger="hover" trigger="hover"
:trigger-attrs="{ 'aria-label': $t('settings.reset_value_tooltip') }" :trigger-attrs="{ 'aria-label': $t('settings.reset_value_tooltip') }"
> >
<template #trigger> <template #trigger>
&nbsp; &nbsp;
<button <button
v-if="$parent.isDirty"
class="button button-default btn" class="button button-default btn"
type="button" type="button"
:title="$t('settings.reset_value')" :title="$t('settings.reset_value')"

View File

@ -1,4 +1,3 @@
import Checkbox from 'src/components/checkbox/checkbox.vue'
import ModifiedIndicator from './modified_indicator.vue' import ModifiedIndicator from './modified_indicator.vue'
import ProfileSettingIndicator from './profile_setting_indicator.vue' import ProfileSettingIndicator from './profile_setting_indicator.vue'
import DraftButtons from './draft_buttons.vue' import DraftButtons from './draft_buttons.vue'
@ -6,7 +5,6 @@ import { get, set } from 'lodash'
export default { export default {
components: { components: {
Checkbox,
ModifiedIndicator, ModifiedIndicator,
DraftButtons, DraftButtons,
ProfileSettingIndicator ProfileSettingIndicator