Patch up activation view with current Cloudron provision status

This commit is contained in:
Johannes Zellner
2025-03-31 22:56:03 +02:00
parent b2e1d4cc61
commit d718c88353
3 changed files with 122 additions and 18 deletions
+11
View File
@@ -84,6 +84,17 @@ function create() {
if (error || result.status !== 200) return [error || result];
return [null];
},
async provisionStatus() {
let error, result;
try {
result = await fetcher.get(`${API_ORIGIN}/api/v1/provision/status`, {});
} catch (e) {
error = e;
}
if (error || result.status !== 200) return [error || result];
return [null, result.body];
},
async createAdmin(data) {
let error, result;
try {