1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-22 09:47:00 +00:00

Merge pull request from sharelatex/hof-modal-success

Stop import modal button flicker
This commit is contained in:
James Allen 2018-01-23 10:35:37 +00:00 committed by GitHub
commit a5195fcbc3

View file

@ -380,10 +380,10 @@ script(type="text/ng-template", id="v1ImportModalTemplate")
if settings.overleaf && settings.overleaf.host
a.btn.btn-primary.v1-import-btn(
ng-href=settings.overleaf.host + "/{{project.id}}"
ng-class="{disabled: v1ImportForm.inflight || v1ImportForm.success}"
ng-class="{disabled: v1ImportForm.inflight || v1ImportForm.response.success}"
) No thanks, open in v1
input.btn.btn-primary.v1-import-btn(
type="submit",
value="Yes, move project to v2"
ng-disabled="v1ImportForm.inflight || v1ImportForm.success"
ng-disabled="v1ImportForm.inflight || v1ImportForm.response.success"
)