mirror of
https://github.com/YunoHost/yunohost-portal.git
synced 2024-09-03 20:06:23 +02:00
reflect change to icons
This commit is contained in:
parent
ec7e566708
commit
fe29d6db91
8 changed files with 15 additions and 15 deletions
|
@ -55,13 +55,13 @@ provide(formGroupExtras, {
|
||||||
:id="name + '__label'"
|
:id="name + '__label'"
|
||||||
:for="name"
|
:for="name"
|
||||||
class="block ms-1 mb-2"
|
class="block ms-1 mb-2"
|
||||||
:class="{ 'sr-only': srHideLabel }"
|
:class="{ 'sr-only': srHideLabel, 'flex mb-0': !!icon }"
|
||||||
>
|
>
|
||||||
<Icon
|
<YIcon
|
||||||
v-if="icon"
|
v-if="icon"
|
||||||
:name="icon"
|
:name="icon"
|
||||||
size="2em"
|
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
|
size="2em"
|
||||||
class="m-2"
|
class="m-2"
|
||||||
/>
|
/>
|
||||||
<span :class="{ 'sr-only': !!icon }">{{ label }}</span>
|
<span :class="{ 'sr-only': !!icon }">{{ label }}</span>
|
||||||
|
|
|
@ -16,9 +16,9 @@ const attrs = computed(() => {
|
||||||
: props.text || t('save'),
|
: props.text || t('save'),
|
||||||
icon:
|
icon:
|
||||||
props.loading === true
|
props.loading === true
|
||||||
? props.loadingIcon || 'mdi:loading'
|
? props.loadingIcon || 'loading'
|
||||||
: props.loading === false
|
: props.loading === false
|
||||||
? 'mdi:thumb-up'
|
? 'thumb-up'
|
||||||
: props.icon,
|
: props.icon,
|
||||||
iconClass: props.loading ? 'animate-spin' : '',
|
iconClass: props.loading ? 'animate-spin' : '',
|
||||||
...baseAttrs,
|
...baseAttrs,
|
||||||
|
|
|
@ -46,7 +46,7 @@ function onAdd() {
|
||||||
/>
|
/>
|
||||||
<YButton
|
<YButton
|
||||||
variant="error"
|
variant="error"
|
||||||
icon="mdi:delete-forever"
|
icon="delete-forever"
|
||||||
icon-size="2em"
|
icon-size="2em"
|
||||||
icon-only
|
icon-only
|
||||||
:text="$t('remove')"
|
:text="$t('remove')"
|
||||||
|
|
|
@ -42,7 +42,7 @@ const variantClass = computed(() => {
|
||||||
:type="$attrs.to ? null : type"
|
:type="$attrs.to ? null : type"
|
||||||
>
|
>
|
||||||
<slot name="default">
|
<slot name="default">
|
||||||
<Icon
|
<YIcon
|
||||||
v-if="icon"
|
v-if="icon"
|
||||||
:name="icon"
|
:name="icon"
|
||||||
:size="iconSize"
|
:size="iconSize"
|
||||||
|
|
|
@ -86,7 +86,7 @@ async function logout() {
|
||||||
<div class="flex flex-row flex-wrap items-center min-w-full">
|
<div class="flex flex-row flex-wrap items-center min-w-full">
|
||||||
<NuxtLink to="/">
|
<NuxtLink to="/">
|
||||||
<span class="sr-only">{{ t('back_to_apps') }}</span>
|
<span class="sr-only">{{ t('back_to_apps') }}</span>
|
||||||
<Icon name="mdi:account-circle" size="5em" class="mr-3" />
|
<YIcon name="account-circle" size="5em" class="mr-3" />
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
@ -111,11 +111,11 @@ async function logout() {
|
||||||
|
|
||||||
<YButton
|
<YButton
|
||||||
v-if="isLoggedIn"
|
v-if="isLoggedIn"
|
||||||
icon="mdi:logout"
|
icon="logout"
|
||||||
:text="t('logout')"
|
:text="t('logout')"
|
||||||
@click.prevent="logout"
|
@click.prevent="logout"
|
||||||
/>
|
/>
|
||||||
<YButton v-else icon="mdi:login" :text="t('login')" to="/login" />
|
<YButton v-else icon="login" :text="t('login')" to="/login" />
|
||||||
</div>
|
</div>
|
||||||
</slot>
|
</slot>
|
||||||
</header>
|
</header>
|
||||||
|
|
|
@ -88,7 +88,7 @@ const onSubmit = handleSubmit(async (form) => {
|
||||||
}
|
}
|
||||||
feedback.value = {
|
feedback.value = {
|
||||||
variant: 'error',
|
variant: 'error',
|
||||||
icon: 'mdi:alert',
|
icon: 'alert',
|
||||||
message,
|
message,
|
||||||
}
|
}
|
||||||
} else if (data.value) {
|
} else if (data.value) {
|
||||||
|
@ -109,7 +109,7 @@ const onSubmit = handleSubmit(async (form) => {
|
||||||
})
|
})
|
||||||
feedback.value = {
|
feedback.value = {
|
||||||
variant: 'success',
|
variant: 'success',
|
||||||
icon: 'mdi:thumb-up',
|
icon: 'thumb-up',
|
||||||
message: t('user_profile_updated'),
|
message: t('user_profile_updated'),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,7 @@ const login = handleSubmit(async (form) => {
|
||||||
<FormField
|
<FormField
|
||||||
name="username"
|
name="username"
|
||||||
:label="t('username')"
|
:label="t('username')"
|
||||||
icon="mdi:account-circle"
|
icon="account-circle"
|
||||||
class="mb-4"
|
class="mb-4"
|
||||||
row
|
row
|
||||||
>
|
>
|
||||||
|
@ -72,7 +72,7 @@ const login = handleSubmit(async (form) => {
|
||||||
<FormField
|
<FormField
|
||||||
name="password"
|
name="password"
|
||||||
:label="t('password')"
|
:label="t('password')"
|
||||||
icon="mdi:lock"
|
icon="lock"
|
||||||
class="mb-4"
|
class="mb-4"
|
||||||
row
|
row
|
||||||
>
|
>
|
||||||
|
|
|
@ -37,7 +37,7 @@ const onSubmit = handleSubmit(async (form) => {
|
||||||
<form novalidate class="my-10" @submit="onSubmit">
|
<form novalidate class="my-10" @submit="onSubmit">
|
||||||
<!-- FIXME replace with accessible component -->
|
<!-- FIXME replace with accessible component -->
|
||||||
<div role="alert" class="alert alert-warning mb-10">
|
<div role="alert" class="alert alert-warning mb-10">
|
||||||
<Icon name="mdi:warning-outline" size="2em" />
|
<YIcon name="alert-outline" size="2em" />
|
||||||
{{ $t('good_practices_about_user_password') }}
|
{{ $t('good_practices_about_user_password') }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue