mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
migration(bvn): BAlert needs explicit show value
This commit is contained in:
parent
26b691d9d6
commit
dc530e36a1
9 changed files with 24 additions and 10 deletions
|
@ -13,7 +13,12 @@
|
||||||
<slot name="default" />
|
<slot name="default" />
|
||||||
|
|
||||||
<slot name="server-error" v-bind="{ errorFeedback }">
|
<slot name="server-error" v-bind="{ errorFeedback }">
|
||||||
<BAlert v-if="errorFeedback" variant="danger" class="my-3" icon="ban">
|
<BAlert
|
||||||
|
:modelValue="!!errorFeedback"
|
||||||
|
variant="danger"
|
||||||
|
class="my-3"
|
||||||
|
icon="ban"
|
||||||
|
>
|
||||||
<div v-html="errorFeedback" />
|
<div v-html="errorFeedback" />
|
||||||
</BAlert>
|
</BAlert>
|
||||||
</slot>
|
</slot>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
variant="danger"
|
variant="danger"
|
||||||
class="my-3"
|
class="my-3"
|
||||||
icon="ban"
|
icon="ban"
|
||||||
:show="errorFeedback !== ''"
|
:modelValue="errorFeedback !== ''"
|
||||||
>
|
>
|
||||||
<div v-html="errorFeedback" />
|
<div v-html="errorFeedback" />
|
||||||
</BAlert>
|
</BAlert>
|
||||||
|
|
|
@ -29,7 +29,11 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #default>
|
<template #default>
|
||||||
<BAlert v-if="items === null || filteredItems === null" variant="warning">
|
<BAlert
|
||||||
|
v-if="items === null || filteredItems === null"
|
||||||
|
:modelValue="true"
|
||||||
|
variant="warning"
|
||||||
|
>
|
||||||
<slot name="alert-message">
|
<slot name="alert-message">
|
||||||
<YIcon iname="exclamation-triangle" />
|
<YIcon iname="exclamation-triangle" />
|
||||||
{{
|
{{
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
<Component
|
<Component
|
||||||
v-bind="$attrs"
|
v-bind="$attrs"
|
||||||
:is="alert ? 'BAlert' : 'div'"
|
:is="alert ? 'BAlert' : 'div'"
|
||||||
|
:modelValue="alert ? true : null"
|
||||||
:variant="alert ? variant : null"
|
:variant="alert ? variant : null"
|
||||||
:class="{ ['alert alert-' + variant]: !alert }"
|
:class="{ ['alert alert-' + variant]: !alert }"
|
||||||
class="yuno-alert d-flex flex-column flex-md-row align-items-center"
|
class="yuno-alert d-flex flex-column flex-md-row align-items-center"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<BAlert
|
<BAlert
|
||||||
class="d-flex flex-column flex-md-row align-items-center"
|
class="d-flex flex-column flex-md-row align-items-center"
|
||||||
:variant="type"
|
:variant="type"
|
||||||
show
|
:modelValue="true"
|
||||||
>
|
>
|
||||||
<YIcon :iname="icon_" class="me-md-3 mb-md-0 mb-2" :variant="type" />
|
<YIcon :iname="icon_" class="me-md-3 mb-md-0 mb-2" :variant="type" />
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<strong v-t="'api_error.error_message'" />
|
<strong v-t="'api_error.error_message'" />
|
||||||
<BAlert class="mt-2" variant="danger">
|
<BAlert :modelValue="true" class="mt-2" variant="danger">
|
||||||
<div v-html="error.message" />
|
<div v-html="error.message" />
|
||||||
</BAlert>
|
</BAlert>
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -7,14 +7,14 @@
|
||||||
<YSpinner class="mb-4" />
|
<YSpinner class="mb-4" />
|
||||||
|
|
||||||
<BAlert
|
<BAlert
|
||||||
v-if="origin"
|
:modelValue="!!origin"
|
||||||
v-t="'api.reconnecting.reason.' + origin"
|
v-t="'api.reconnecting.reason.' + origin"
|
||||||
:variant="origin === 'unknow' ? 'warning' : 'info'"
|
:variant="origin === 'unknow' ? 'warning' : 'info'"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-if="status === 'failed'">
|
<template v-if="status === 'failed'">
|
||||||
<BAlert variant="danger">
|
<BAlert :modelValue="true" variant="danger">
|
||||||
<MarkdownItem :label="$t('api.reconnecting.failed')" />
|
<MarkdownItem :label="$t('api.reconnecting.failed')" />
|
||||||
</BAlert>
|
</BAlert>
|
||||||
|
|
||||||
|
@ -29,7 +29,11 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-if="status === 'expired'">
|
<template v-if="status === 'expired'">
|
||||||
<BAlert variant="success" v-t="'api.reconnecting.session_expired'" />
|
<BAlert
|
||||||
|
:modelValue="true"
|
||||||
|
variant="success"
|
||||||
|
v-t="'api.reconnecting.session_expired'"
|
||||||
|
/>
|
||||||
|
|
||||||
<LoginView force-reload />
|
<LoginView force-reload />
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -193,7 +193,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!-- In case of a custom url with no manifest found -->
|
<!-- In case of a custom url with no manifest found -->
|
||||||
<BAlert v-else-if="app === null" variant="warning">
|
<BAlert :modelValue="app === null" variant="warning">
|
||||||
<YIcon iname="exclamation-triangle" />
|
<YIcon iname="exclamation-triangle" />
|
||||||
{{ $t('app_install_custom_no_manifest') }}
|
{{ $t('app_install_custom_no_manifest') }}
|
||||||
</BAlert>
|
</BAlert>
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<BAlert v-if="!archives" variant="warning">
|
<BAlert v-if="!archives" :modelValue="!archives" variant="warning">
|
||||||
<YIcon iname="exclamation-triangle" />
|
<YIcon iname="exclamation-triangle" />
|
||||||
{{ $t('items_verbose_count', { items: $t('items.backups', 0) }, 0) }}
|
{{ $t('items_verbose_count', { items: $t('items.backups', 0) }, 0) }}
|
||||||
</BAlert>
|
</BAlert>
|
||||||
|
|
Loading…
Reference in a new issue