maj balise div et vue
This commit is contained in:
parent
a591fc839d
commit
5853df5acf
@ -926,6 +926,13 @@ __webpack_require__.r(__webpack_exports__);
|
||||
async mounted() {
|
||||
await this.fetchFiles();
|
||||
this.breadcrumbParts = this.getBreadcrumbParts();
|
||||
const webTransferDiv = document.getElementById('archiveInfos');
|
||||
if (webTransferDiv) {
|
||||
this.archiveUrl = webTransferDiv.dataset.archiveUrl;
|
||||
this.token = webTransferDiv.dataset.token;
|
||||
} else {
|
||||
console.error('Pas d\'informations pour recuperer l\'archive');
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async fetchFiles() {
|
||||
|
File diff suppressed because one or more lines are too long
@ -126,12 +126,20 @@ export default {
|
||||
current_dir: '/',
|
||||
breadcrumbParts: [],
|
||||
isAddFilePopupVisible: false,
|
||||
newFileName: ''
|
||||
newFileName: '',
|
||||
};
|
||||
},
|
||||
async mounted() {
|
||||
await this.fetchFiles();
|
||||
this.breadcrumbParts = this.getBreadcrumbParts();
|
||||
|
||||
const webTransferDiv = document.getElementById('archiveInfos');
|
||||
if (webTransferDiv) {
|
||||
this.archiveUrl = webTransferDiv.dataset.archiveUrl;
|
||||
this.token = webTransferDiv.dataset.token;
|
||||
} else {
|
||||
console.error('Pas d\'informations pour recuperer l\'archive');
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async fetchFiles() {
|
||||
|
@ -10,7 +10,11 @@ $archiveUrl = isset($_['archiveUrl']) ? $_['archiveUrl'] : ''; // Valeur par dé
|
||||
$token = isset($_['token']) ? $_['token'] : ''; // Valeur par défaut vide si non définie
|
||||
?>
|
||||
|
||||
<div id="webtransfer"
|
||||
<div id="webtransfer">
|
||||
</div>
|
||||
|
||||
<div id="archiveInfos"
|
||||
data-archive-url="<?php echo htmlspecialchars($archiveUrl); ?>"
|
||||
data-token="<?php echo htmlspecialchars($token); ?>"
|
||||
></div>
|
||||
>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user