Code Review
/
src
/
xds
/
xds-agent.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fixed build page when no project exists
[src/xds/xds-agent.git]
/
webapp
/
src
/
app
/
pages
/
config
/
config-xds
/
config-xds.component.ts
diff --git
a/webapp/src/app/pages/config/config-xds/config-xds.component.ts
b/webapp/src/app/pages/config/config-xds/config-xds.component.ts
index
396115b
..
bd46145
100644
(file)
--- a/
webapp/src/app/pages/config/config-xds/config-xds.component.ts
+++ b/
webapp/src/app/pages/config/config-xds/config-xds.component.ts
@@
-20,7
+20,7
@@
export class ConfigXdsComponent {
// TODO: cleanup agentStatus$: Observable<IAgentStatus>;
applying = false;
xdsServerUrl = '';
// TODO: cleanup agentStatus$: Observable<IAgentStatus>;
applying = false;
xdsServerUrl = '';
- server: IXDServerCfg;
+ server: IXDServerCfg
= { id: '', url: 'http://localhost:8000', connRetry: 10, connected: false }
;
configFormChanged = false;
configFormChanged = false;
@@
-35,6
+35,10
@@
export class ConfigXdsComponent {
});
}
});
}
+ isApplyBtnEnable(): boolean {
+ return this.xdsServerUrl !== '' && (!this.server.connected || this.configFormChanged);
+ }
+
onSubmit() {
if (!this.configFormChanged && this.server.connected) {
return;
onSubmit() {
if (!this.configFormChanged && this.server.connected) {
return;