Added file disable feature
- Redesigned login page
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user