diff --git a/src/components/FileTable.vue b/src/components/FileTable.vue index 3fb9e91..2ba3d45 100644 --- a/src/components/FileTable.vue +++ b/src/components/FileTable.vue @@ -16,7 +16,7 @@ Nouveau - + @@ -133,7 +133,8 @@ import NcActions from '@nextcloud/vue/dist/Components/NcActions.js'; import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js'; import Delete from 'vue-material-design-icons/Delete.vue'; import Pencil from 'vue-material-design-icons/Pencil.vue' -import NcProgressBar from '@nextcloud/vue/dist/Components/NcProgressBar.js' +//import NcProgressBar from '@nextcloud/vue/dist/Components/NcProgressBar.js' +import ProgressBar from './ProgressBar.vue'; import EditFileName from './EditFileName.vue'; export default { @@ -144,7 +145,7 @@ export default { Plus, NcActions, NcActionButton, - NcProgressBar, + ProgressBar, Delete, Pencil, EditFileName, @@ -169,7 +170,7 @@ export default { initialFileName: '', // Nom originel du fichier/dossier edite isDirectory: false, // Si l'element edite est un dossier ou non transferProgress: 0, - transferStatus: 'green', + transferStatus: 'bg-blue-500', }; }, async mounted() { @@ -297,7 +298,7 @@ export default { } catch (error) { console.error('Erreur lors du drop :', error); - this.transferStatus = 'red'; + this.transferStatus = 'bg-red-500'; this.isTransfering = false; } }, diff --git a/src/components/ProgressBar.vue b/src/components/ProgressBar.vue new file mode 100644 index 0000000..60ce9c4 --- /dev/null +++ b/src/components/ProgressBar.vue @@ -0,0 +1,37 @@ + + + + + + \ No newline at end of file