forked from nutomic/joinpeertube
Fix instances quota filter
This commit is contained in:
parent
c018f279cd
commit
0c6f962dcc
1 changed files with 11 additions and 7 deletions
|
@ -82,19 +82,19 @@
|
||||||
<label for="quota" v-translate>Allowed video space</label>
|
<label for="quota" v-translate>Allowed video space</label>
|
||||||
|
|
||||||
<b-form-select v-model="quota" id="quota" name="quota">
|
<b-form-select v-model="quota" id="quota" name="quota">
|
||||||
<option value="1">
|
<option value="1000000000">
|
||||||
<translate>At least 1GB</translate>
|
<translate>At least 1GB</translate>
|
||||||
</option>
|
</option>
|
||||||
|
|
||||||
<option value="5">
|
<option value="5000000000">
|
||||||
<translate>At least 5GB</translate>
|
<translate>At least 5GB</translate>
|
||||||
</option>
|
</option>
|
||||||
|
|
||||||
<option value="20">
|
<option value="20000000000">
|
||||||
<translate>At least 20GB</translate>
|
<translate>At least 20GB</translate>
|
||||||
</option>
|
</option>
|
||||||
|
|
||||||
<option value="50">
|
<option value="50000000000">
|
||||||
<translate>At least 50GB</translate>
|
<translate>At least 50GB</translate>
|
||||||
</option>
|
</option>
|
||||||
</b-form-select>
|
</b-form-select>
|
||||||
|
@ -393,7 +393,7 @@
|
||||||
themes: [],
|
themes: [],
|
||||||
nsfw: 'no-opinion',
|
nsfw: 'no-opinion',
|
||||||
languages: [],
|
languages: [],
|
||||||
quota: '5'
|
quota: '5000000000'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -454,9 +454,13 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
onFormChange () {
|
onFormChange () {
|
||||||
console.log('Updating instances list.')
|
// Wait for v-model to be updated
|
||||||
|
// https://github.com/vuejs/vue/issues/293#issuecomment-265716984
|
||||||
|
setTimeout(() => {
|
||||||
|
console.log('Updating instances list.')
|
||||||
|
|
||||||
this.fetchInstances()
|
this.fetchInstances()
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
isQuotaEnabled () {
|
isQuotaEnabled () {
|
||||||
|
|
Loading…
Reference in a new issue