fix: Add error message for "/" character when renaming file
This commit is contained in:
parent
0ca9c85045
commit
1909764765
@ -16,6 +16,7 @@
|
||||
@keyup.enter="submit"
|
||||
v-model.trim="name"
|
||||
/>
|
||||
<p class=""></p>
|
||||
</div>
|
||||
|
||||
<div class="card-action">
|
||||
@ -86,6 +87,11 @@ export default {
|
||||
return this.req.items[this.selected[0]].name;
|
||||
},
|
||||
submit: async function () {
|
||||
if(this.name.includes('/')) {
|
||||
this.$showError(new Error(this.$t('errors.invalidName')));
|
||||
this.closeHovers();
|
||||
return;
|
||||
}
|
||||
let oldLink = "";
|
||||
let newLink = "";
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user