This commit is contained in:
Peter Papp
2021-07-22 17:26:22 +02:00
parent 093c9451ec
commit fffede1c10
12 changed files with 53 additions and 44 deletions

View File

@@ -284,7 +284,7 @@
// Send request to get share link
axios
.post('/api/share/' + this.shareOptions.id, {
.post('/api/share/' + this.shareOptions.token, {
permission: this.shareOptions.permission,
protected: this.shareOptions.isProtected,
expiration: this.shareOptions.expiration,

View File

@@ -68,7 +68,7 @@ const Helpers = {
Vue.prototype.$updateText = debounce(function (route, name, value, allowEmpty = false) {
if ((value === '' || value === ' ') && !allowEmpty) return
if ((value === '' || value === ' ' || typeof value === 'object') && !allowEmpty) return
axios.post(this.$store.getters.api + route, {name, value, _method: 'patch'})
.catch(() => {

View File

@@ -42,7 +42,7 @@
},
data() {
return {
password: 'secret',
password: '',
isLoading: false,
}
},