commit avant register et responsive

This commit is contained in:
root
2025-08-31 16:23:13 +02:00
parent dfaae262c7
commit 849167994c
8 changed files with 2101 additions and 30 deletions

View File

@@ -181,8 +181,9 @@
type="button"
@click="$refs.mediaInput.click()"
class="btn-secondary"
:disabled="isUploading"
>
Sélectionner des fichiers
{{ isUploading ? 'Upload en cours...' : 'Sélectionner des fichiers' }}
</button>
</div>
@@ -248,8 +249,9 @@
type="button"
@click="$refs.mediaInput.click()"
class="btn-secondary text-sm"
:disabled="isUploading"
>
Ajouter plus de fichiers
{{ isUploading ? 'Upload en cours...' : 'Ajouter plus de fichiers' }}
</button>
</div>
</div>
@@ -305,8 +307,11 @@
:disabled="creating || newAlbum.media.length === 0 || isUploading"
class="flex-1 btn-primary"
>
<span v-if="isUploading">
<Upload class="w-4 h-4 mr-2 animate-spin" />
<span v-if="isUploading" class="flex items-center justify-center">
<svg class="animate-spin -ml-1 mr-3 h-5 w-5 text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.291z"></path>
</svg>
Upload en cours...
</span>
<span v-else-if="creating">
@@ -435,7 +440,7 @@ async function fetchUsers() {
async function fetchUploadLimits() {
try {
const response = await axios.get('/api/settings/upload-limits')
const response = await axios.get('/api/settings/public/upload-limits')
uploadLimits.value = response.data
} catch (error) {
console.error('Error fetching upload limits:', error)