2023-03-18 20:48:36 +03:00
|
|
|
<template>
|
|
|
|
|
<span
|
|
|
|
|
v-if="matchesExpertLevel"
|
|
|
|
|
class="NumberSetting"
|
|
|
|
|
>
|
2023-04-24 23:01:29 +03:00
|
|
|
<label
|
|
|
|
|
:for="path"
|
|
|
|
|
:class="{ 'faint': shouldBeDisabled }"
|
|
|
|
|
>
|
2023-04-12 23:58:21 +03:00
|
|
|
<template v-if="backendDescriptionLabel">
|
2023-03-20 23:36:47 +02:00
|
|
|
{{ backendDescriptionLabel + ' ' }}
|
|
|
|
|
</template>
|
2023-05-08 21:10:06 +03:00
|
|
|
<template v-else-if="source === 'admin'">
|
|
|
|
|
MISSING LABEL FOR {{ path }}
|
2023-03-20 23:36:47 +02:00
|
|
|
</template>
|
2023-05-08 21:10:06 +03:00
|
|
|
<slot v-else />
|
2023-03-18 20:48:36 +03:00
|
|
|
</label>
|
2024-07-23 21:52:01 +03:00
|
|
|
{{ ' ' }}
|
2023-03-18 20:48:36 +03:00
|
|
|
<input
|
|
|
|
|
:id="path"
|
2024-02-07 15:53:49 +02:00
|
|
|
class="input number-input"
|
2023-03-18 20:48:36 +03:00
|
|
|
type="number"
|
|
|
|
|
:step="step || 1"
|
2023-03-22 00:00:52 +02:00
|
|
|
:disabled="shouldBeDisabled"
|
2023-03-18 20:48:36 +03:00
|
|
|
:min="min || 0"
|
2023-03-21 22:46:40 +02:00
|
|
|
:value="realDraftMode ? draft :state"
|
2023-03-18 20:48:36 +03:00
|
|
|
@change="update"
|
|
|
|
|
>
|
|
|
|
|
{{ ' ' }}
|
|
|
|
|
<ModifiedIndicator
|
|
|
|
|
:changed="isChanged"
|
|
|
|
|
:onclick="reset"
|
|
|
|
|
/>
|
2023-03-20 23:36:47 +02:00
|
|
|
<ProfileSettingIndicator :is-profile="isProfileSetting" />
|
|
|
|
|
<DraftButtons />
|
|
|
|
|
<p
|
|
|
|
|
v-if="backendDescriptionDescription"
|
|
|
|
|
class="setting-description"
|
2023-03-22 00:00:52 +02:00
|
|
|
:class="{ 'faint': shouldBeDisabled }"
|
2023-03-20 23:36:47 +02:00
|
|
|
>
|
|
|
|
|
{{ backendDescriptionDescription + ' ' }}
|
|
|
|
|
</p>
|
2023-03-18 20:48:36 +03:00
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script src="./number_setting.js"></script>
|