Added file disable feature

- Redesigned login page
This commit is contained in:
2024-06-04 00:34:41 +02:00
parent 1462e141ad
commit 5f3304674f
6 changed files with 66 additions and 12 deletions

View File

@@ -137,7 +137,7 @@ export class AdminuiComponent {
}
});
this.statistics = response.data;
console.log(this.statistics)
//console.log(this.statistics)
} catch (error) {
console.error(error);
}
@@ -152,7 +152,26 @@ export class AdminuiComponent {
'Authorization': 'Bearer ' + await firstValueFrom(this.authStore.token$)
}
});
console.log(this.statistics)
console.log(response.data)
} catch (error) {
console.error(error);
}
}
async disableFile(fileId: string) {
try {
const response = await axios({
method: 'put',
url: this.developmentStore.getBaseUrl() + 'api/v1/secure/files/disable',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer ' + await firstValueFrom(this.authStore.token$)
},
data: {
fileId: fileId
}
});
console.log(response.data)
} catch (error) {
console.error(error);
}