mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
migration(bvn): remove no longer necessary BInputGroupAppend|Prepend
This commit is contained in:
parent
e53c2c14d3
commit
357405d2a3
5 changed files with 48 additions and 70 deletions
|
@ -9,18 +9,14 @@
|
|||
@update:modelValue="onInput('localPart', $event)"
|
||||
/>
|
||||
|
||||
<BInputGroupAppend>
|
||||
<BInputGroupText>{{ modelValue.separator }}</BInputGroupText>
|
||||
</BInputGroupAppend>
|
||||
<BInputGroupText>{{ modelValue.separator }}</BInputGroupText>
|
||||
|
||||
<BInputGroupAppend>
|
||||
<SelectItem
|
||||
:modelValue="modelValue.domain"
|
||||
:choices="choices"
|
||||
:aria-describedby="id + 'domain-desc'"
|
||||
@update:modelValue="onInput('domain', $event)"
|
||||
/>
|
||||
</BInputGroupAppend>
|
||||
<SelectItem
|
||||
:modelValue="modelValue.domain"
|
||||
:choices="choices"
|
||||
:aria-describedby="id + 'domain-desc'"
|
||||
@update:modelValue="onInput('domain', $event)"
|
||||
/>
|
||||
|
||||
<span
|
||||
class="sr-only"
|
||||
|
@ -60,13 +56,3 @@ export default {
|
|||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.input-group-append ~ .input-group-append {
|
||||
flex-basis: 40%;
|
||||
}
|
||||
select {
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
</template>
|
||||
<template v-if="!hasCustomTopBar" #top-bar-group-left>
|
||||
<BInputGroup class="w-100">
|
||||
<BInputGroupPrepend is-text>
|
||||
<BInputGroupText>
|
||||
<YIcon iname="search" />
|
||||
</BInputGroupPrepend>
|
||||
</BInputGroupText>
|
||||
|
||||
<BFormInput
|
||||
id="top-bar-search"
|
||||
|
|
|
@ -10,48 +10,49 @@
|
|||
<div id="view-top-bar">
|
||||
<!-- APP SEARCH -->
|
||||
<BInputGroup>
|
||||
<BInputGroupPrepend is-text>
|
||||
<BInputGroupText>
|
||||
<YIcon iname="search" />
|
||||
</BInputGroupPrepend>
|
||||
</BInputGroupText>
|
||||
|
||||
<BFormInput
|
||||
id="search-input"
|
||||
:placeholder="$t('search.for', { items: $t('items.apps', 2) })"
|
||||
:modelValue="search"
|
||||
@update:modelValue="updateQuery('search', $event)"
|
||||
/>
|
||||
<BInputGroupAppend>
|
||||
<BFormSelect
|
||||
:modelValue="quality"
|
||||
:options="qualityOptions"
|
||||
@update:modelValue="updateQuery('quality', $event)"
|
||||
/>
|
||||
</BInputGroupAppend>
|
||||
|
||||
<BFormSelect
|
||||
:modelValue="quality"
|
||||
:options="qualityOptions"
|
||||
@update:modelValue="updateQuery('quality', $event)"
|
||||
/>
|
||||
</BInputGroup>
|
||||
|
||||
<!-- CATEGORY SELECT -->
|
||||
<BInputGroup class="mt-3">
|
||||
<BInputGroupPrepend is-text>
|
||||
<BInputGroupText>
|
||||
<YIcon iname="filter" />
|
||||
</BInputGroupPrepend>
|
||||
</BInputGroupText>
|
||||
|
||||
<BFormSelect
|
||||
:modelValue="category"
|
||||
:options="categories"
|
||||
@update:modelValue="updateQuery('category', $event)"
|
||||
/>
|
||||
<BInputGroupAppend>
|
||||
<BButton
|
||||
variant="primary"
|
||||
:disabled="category === null"
|
||||
@click="updateQuery('category', null)"
|
||||
>
|
||||
{{ $t('app_show_categories') }}
|
||||
</BButton>
|
||||
</BInputGroupAppend>
|
||||
|
||||
<BButton
|
||||
variant="primary"
|
||||
:disabled="category === null"
|
||||
@click="updateQuery('category', null)"
|
||||
>
|
||||
{{ $t('app_show_categories') }}
|
||||
</BButton>
|
||||
</BInputGroup>
|
||||
|
||||
<!-- CATEGORIES SUBTAGS -->
|
||||
<BInputGroup v-if="subtags" class="mt-3 subtags">
|
||||
<BInputGroupPrepend is-text> Subtags </BInputGroupPrepend>
|
||||
<BInputGroupText>Subtags</BInputGroupText>
|
||||
|
||||
<BFormRadioGroup
|
||||
id="subtags-radio"
|
||||
name="subtags"
|
||||
|
@ -61,6 +62,7 @@
|
|||
buttons
|
||||
button-variant="outline-secondary"
|
||||
/>
|
||||
|
||||
<BFormSelect
|
||||
id="subtags-select"
|
||||
:modelValue="subtag"
|
||||
|
|
|
@ -156,19 +156,19 @@
|
|||
:id="'perm' + i"
|
||||
:aria-describedby="'perm-' + i + '_group__BV_description_'"
|
||||
/>
|
||||
<BInputGroupAppend v-if="perm.tileAvailable" is-text>
|
||||
|
||||
<BInputGroupText v-if="perm.tileAvailable">
|
||||
<CheckboxItem
|
||||
v-model="form.labels[i].show_tile"
|
||||
:label="$t('permission_show_tile_enabled')"
|
||||
/>
|
||||
</BInputGroupAppend>
|
||||
<BInputGroupAppend>
|
||||
<BButton
|
||||
variant="info"
|
||||
v-t="'save'"
|
||||
@click="changeLabel(perm.name, form.labels[i])"
|
||||
/>
|
||||
</BInputGroupAppend>
|
||||
</BInputGroupText>
|
||||
|
||||
<BButton
|
||||
variant="info"
|
||||
v-t="'save'"
|
||||
@click="changeLabel(perm.name, form.labels[i])"
|
||||
/>
|
||||
</BInputGroup>
|
||||
</template>
|
||||
|
||||
|
@ -213,13 +213,11 @@
|
|||
v-if="app.is_webapp"
|
||||
>
|
||||
<BInputGroup v-if="app.supports_change_url">
|
||||
<BInputGroupPrepend is-text> https:// </BInputGroupPrepend>
|
||||
<BInputGroupText>https://</BInputGroupText>
|
||||
|
||||
<BInputGroupPrepend class="flex-grow-1">
|
||||
<BFormSelect v-model="form.url.domain" :options="domains" />
|
||||
</BInputGroupPrepend>
|
||||
<BFormSelect v-model="form.url.domain" :options="domains" />
|
||||
|
||||
<BInputGroupPrepend is-text> / </BInputGroupPrepend>
|
||||
<BInputGroupText>/</BInputGroupText>
|
||||
|
||||
<BFormInput
|
||||
id="input-url"
|
||||
|
@ -227,9 +225,7 @@
|
|||
class="flex-grow-3"
|
||||
/>
|
||||
|
||||
<BInputGroupAppend>
|
||||
<BButton @click="changeUrl" variant="info" v-t="'save'" />
|
||||
</BInputGroupAppend>
|
||||
<BButton @click="changeUrl" variant="info" v-t="'save'" />
|
||||
</BInputGroup>
|
||||
|
||||
<div v-else class="alert alert-warning">
|
||||
|
|
|
@ -30,15 +30,9 @@
|
|||
<FormField v-bind="fields.domain" :validation="v$.form.domain">
|
||||
<template #default="{ self }">
|
||||
<BInputGroup>
|
||||
<BInputGroupAppend>
|
||||
<BInputGroupText
|
||||
id="local-part"
|
||||
tag="label"
|
||||
class="border-right-0"
|
||||
>
|
||||
{{ form.username }}@
|
||||
</BInputGroupText>
|
||||
</BInputGroupAppend>
|
||||
<BInputGroupText id="local-part" tag="label" class="border-right-0">
|
||||
{{ form.username }}@
|
||||
</BInputGroupText>
|
||||
|
||||
<SelectItem
|
||||
aria-labelledby="local-part"
|
||||
|
|
Loading…
Reference in a new issue