Merge pull request #4025 from overleaf/ae-timeout-upgrade
Only show upgrade message on timeout if not already premium GitOrigin-RevId: 1378b0a98c6b511d63f2ce1192d3fdca16e8db26
This commit is contained in:
@@ -16,6 +16,9 @@ export const TimedOutError = args => {
|
||||
owner: {
|
||||
_id: window.user.id,
|
||||
},
|
||||
features: {
|
||||
compileGroup: 'standard',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -34,6 +37,39 @@ TimedOutError.args = {
|
||||
},
|
||||
}
|
||||
|
||||
export const TimedOutErrorWithPriorityCompile = args => {
|
||||
useFetchMock(fetchMock => {
|
||||
fetchMock.post('express:/event/:key', 202)
|
||||
})
|
||||
|
||||
const ide = {
|
||||
$scope: {
|
||||
$watch: () => () => null,
|
||||
project: {
|
||||
owner: {
|
||||
_id: window.user.id,
|
||||
},
|
||||
features: {
|
||||
compileGroup: 'priority',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
return (
|
||||
<ApplicationProvider>
|
||||
<EditorProvider ide={ide} settings={{}}>
|
||||
<PreviewLogsPane {...args} />
|
||||
</EditorProvider>
|
||||
</ApplicationProvider>
|
||||
)
|
||||
}
|
||||
TimedOutErrorWithPriorityCompile.args = {
|
||||
errors: {
|
||||
timedout: {},
|
||||
},
|
||||
}
|
||||
|
||||
export default {
|
||||
title: 'Preview Logs / Pane',
|
||||
component: PreviewLogsPane,
|
||||
|
||||
Reference in New Issue
Block a user