mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-01 18:53:16 +00:00
Update StoryCompose component
This commit is contained in:
parent
2ae3c6adfe
commit
9003dabbba
1 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="container mt-2 mt-md-5">
|
<div class="container mt-2 mt-md-5">
|
||||||
<input type="file" id="pf-dz" name="media" class="w-100 h-100 d-none file-input" draggable="true" v-bind:accept="config.mimes">
|
<input type="file" id="pf-dz" name="media" class="d-none file-input" v-bind:accept="config.mimes">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12 col-md-6 offset-md-3">
|
<div class="col-12 col-md-6 offset-md-3">
|
||||||
|
|
||||||
|
@ -227,7 +227,8 @@
|
||||||
}).catch(function(e) {
|
}).catch(function(e) {
|
||||||
self.uploading = false;
|
self.uploading = false;
|
||||||
io.value = null;
|
io.value = null;
|
||||||
swal('Oops!', e.response.data.message, 'warning');
|
let msg = e.response.data.message ? e.response.data.message : 'Something went wrong.'
|
||||||
|
swal('Oops!', msg, 'warning');
|
||||||
});
|
});
|
||||||
io.value = null;
|
io.value = null;
|
||||||
self.uploadProgress = 0;
|
self.uploadProgress = 0;
|
||||||
|
|
Loading…
Reference in a new issue