Use same style for all notifications, better error message

This commit is contained in:
Ferdinand Thiessen 2020-11-16 13:44:38 +01:00
parent 1471f1a660
commit 967458a51b
1 changed files with 7 additions and 2 deletions

View File

@ -177,9 +177,14 @@ export default defineComponent({
const avatar = ref<string>('');
function onAvatarRejected() {
Notify.create({
color: 'negative',
message: 'Ungültige Bilddatei',
group: false,
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(() =>