Fix the issue that users have to refresh the page to see the ingress detail page

This commit is contained in:
loganhz 2019-01-27 06:21:26 +08:00
parent 97cf30d5cd
commit dd035a4c7b
6 changed files with 6 additions and 3 deletions

View File

@ -25,6 +25,7 @@
{{form-ingress-rule {{form-ingress-rule
editing=true editing=true
ingress=ingress ingress=ingress
namespace=namespace
}} }}
<hr class="mt-30 mb-30" /> <hr class="mt-30 mb-30" />
</section> </section>

View File

@ -19,6 +19,7 @@
<section class="mt-40 horizontal-form container-fluid"> <section class="mt-40 horizontal-form container-fluid">
{{form-ingress-rule {{form-ingress-rule
ingress=model.ingress ingress=model.ingress
namespace=model.ingress.namespace
editing=false editing=false
}} }}
</section> </section>

View File

@ -5,6 +5,5 @@
editing=true editing=true
existing=model.existing existing=model.existing
ingress=model.ingress ingress=model.ingress
namespace=model.ingress.namespace
namespacedCertificates=model.namespacedcertificates namespacedCertificates=model.namespacedcertificates
}} }}

View File

@ -53,7 +53,7 @@
obj=path.service obj=path.service
selectClass="input-sm" selectClass="input-sm"
selected=path.serviceId selected=path.serviceId
selectedNamespace=ingress.namespace selectedNamespace=namespace
}} }}
{{else if (eq path.backendType 'workload')}} {{else if (eq path.backendType 'workload')}}
{{schema/input-workload {{schema/input-workload
@ -61,7 +61,7 @@
readOnly=(not editing) readOnly=(not editing)
selectClass="input-sm" selectClass="input-sm"
selected=path.serviceId selected=path.serviceId
selectedNamespace=ingress.namespace selectedNamespace=namespace
}} }}
{{/if}} {{/if}}
</td> </td>

View File

@ -86,6 +86,7 @@
{{form-ingress-backends {{form-ingress-backends
ingress=ingress ingress=ingress
namespace=namespace
isDefault=isDefault isDefault=isDefault
rule=rule rule=rule
editing=editing editing=editing

View File

@ -6,6 +6,7 @@
{{form-ingress-rows {{form-ingress-rows
editing=editing editing=editing
ingress=ingress ingress=ingress
namespace=namespace
removeRule=(action 'removeRule') removeRule=(action 'removeRule')
rule=rule rule=rule
rules=rules rules=rules