Use same style for all notifications, better error message
This commit is contained in:
parent
1471f1a660
commit
967458a51b
|
@ -177,9 +177,14 @@ export default defineComponent({
|
||||||
const avatar = ref<string>('');
|
const avatar = ref<string>('');
|
||||||
function onAvatarRejected() {
|
function onAvatarRejected() {
|
||||||
Notify.create({
|
Notify.create({
|
||||||
color: 'negative',
|
group: false,
|
||||||
message: 'Ungültige Bilddatei',
|
type: 'negative',
|
||||||
|
message: 'Datei zu groß oder keine gültige Bilddatei.',
|
||||||
|
timeout: 10000,
|
||||||
|
progress: true,
|
||||||
|
actions: [{ icon: 'mdi-close', color: 'white' }],
|
||||||
});
|
});
|
||||||
|
avatar.value = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
const allRoles = computed(() =>
|
const allRoles = computed(() =>
|
||||||
|
|
Loading…
Reference in New Issue