mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-04 14:49:01 +02:00
[web] Fix FileTreeModalCreateFile modal style on "too many files" error (#28995)
* Temporarily update `maxEntitiesPerProject` to test `FileTreeModalCreateFile` * Remove unused CSS * Move project_has_too_many_files Notification to the modal body * Turn project_approaching_file_limit message into a Notification * Update project_has_too_many_files translation with `fileCount.limit` * Update other project_has_too_many_files with limit parameter * Add translations for project_has_too_many_files_limit * Revert "Temporarily update `maxEntitiesPerProject` to test `FileTreeModalCreateFile`" This reverts commit 704996aa96c9ba592c7e44d165def0b97d30bed1. * Fix unit tests * Move the warning notification to the modal's body --------- Co-authored-by: Rebeka <o.dekany@gmail.com> GitOrigin-RevId: 0f54db7021e4cd4537a14e4f9e1d8ef54337778c
This commit is contained in:
@@ -524,7 +524,7 @@ describe('EditorHttpController', function () {
|
||||
)
|
||||
await new Promise(resolve => {
|
||||
ctx.res.callback = () => {
|
||||
expect(ctx.res.body).to.equal('"project_has_too_many_files"')
|
||||
expect(ctx.res.body).to.equal('"project_has_too_many_files_limit"')
|
||||
expect(ctx.res.status).to.have.been.calledWith(400)
|
||||
resolve()
|
||||
}
|
||||
@@ -584,7 +584,7 @@ describe('EditorHttpController', function () {
|
||||
new Error('project_has_too_many_files')
|
||||
)
|
||||
ctx.res.callback = () => {
|
||||
expect(ctx.res.body).to.equal('"project_has_too_many_files"')
|
||||
expect(ctx.res.body).to.equal('"project_has_too_many_files_limit"')
|
||||
expect(ctx.res.statusCode).to.equal(400)
|
||||
resolve()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user