- Update getStatusPageByUrl to match BE
- Change layout to use the one that has vertical line - Update name to CreateStatusContext instead of TabContext to make it clearer - Handle errors to land on the respective page tab
This commit is contained in:
1 parent
219bcd4361
commit
c9b804a9ab
5 files changed
+34
-17
No files matched your search
@@ -847,13 +847,11 @@ class NetworkService {
|
||||
);
|
||||
}
|
||||
|
||||
async getStatusPageByUrl(config){
|
||||
const params = new URLSearchParams();
|
||||
params.append("url", encodeURIComponent(config.url));
|
||||
|
||||
return this.axiosInstance.get(`/status-page?${params.toString()}`, {
|
||||
async getStatusPageByUrl(config) {
|
||||
const { url, authToken } = config;
|
||||
return this.axiosInstance.get(`/status-page/${url}`, {
|
||||
headers: {
|
||||
Authorization: `Bearer ${config.authToken}`,
|
||||
Authorization: `Bearer ${authToken}`,
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user