Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CSAN
Csan
Commits
4ec919df
Commit
4ec919df
authored
Jul 11, 2020
by
AllForNothing
Browse files
Query preheat instance by name
Signed-off-by:
AllForNothing
<
sshijun@vmware.com
>
parent
ec1ac6db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/portal/src/app/distribution/distribution-instances/distribution-instances.component.ts
...istribution-instances/distribution-instances.component.ts
+4
-4
src/portal/src/app/distribution/distribution-setup-modal/distribution-setup-modal.component.ts
...ibution-setup-modal/distribution-setup-modal.component.ts
+1
-1
No files found.
src/portal/src/app/distribution/distribution-instances/distribution-instances.component.ts
View file @
4ec919df
...
...
@@ -169,7 +169,7 @@ export class DistributionInstancesComponent implements OnInit, OnDestroy {
this
.
operationService
.
publishInfo
(
operMessage
);
this
.
disService
.
UpdateInstance
({
propertySet
:
{
default
:
true
},
i
nstance
Id
:
this
.
selectedRow
[
0
].
id
preheatI
nstance
Name
:
this
.
selectedRow
[
0
].
name
})
.
subscribe
(
()
=>
{
...
...
@@ -273,7 +273,7 @@ export class DistributionInstancesComponent implements OnInit, OnDestroy {
operMessage
.
data
.
name
=
instance
.
name
;
this
.
operationService
.
publishInfo
(
operMessage
);
return
this
.
disService
.
DeleteInstance
({
i
nstance
Id
:
instance
.
id
}).
pipe
(
return
this
.
disService
.
DeleteInstance
({
preheatI
nstance
Name
:
instance
.
name
}).
pipe
(
map
(()
=>
{
this
.
translate
.
get
(
'
DISTRIBUTION.DELETED_SUCCESS
'
).
subscribe
(
msg
=>
{
operateChanges
(
operMessage
,
OperationState
.
success
);
...
...
@@ -305,7 +305,7 @@ export class DistributionInstancesComponent implements OnInit, OnDestroy {
return
this
.
disService
.
UpdateInstance
({
propertySet
:
{
enabled
:
true
},
i
nstance
Id
:
instance
.
id
preheatI
nstance
Name
:
instance
.
name
})
.
pipe
(
map
(()
=>
{
...
...
@@ -339,7 +339,7 @@ export class DistributionInstancesComponent implements OnInit, OnDestroy {
return
this
.
disService
.
UpdateInstance
({
propertySet
:
{
enabled
:
false
},
i
nstance
Id
:
instance
.
id
preheatI
nstance
Name
:
instance
.
name
})
.
pipe
(
map
(()
=>
{
...
...
src/portal/src/app/distribution/distribution-setup-modal/distribution-setup-modal.component.ts
View file @
4ec919df
...
...
@@ -119,7 +119,7 @@ export class DistributionSetupModalComponent implements OnInit {
operMessageForEdit
.
data
.
name
=
this
.
model
.
name
;
this
.
operationService
.
publishInfo
(
operMessageForEdit
);
this
.
saveBtnState
=
ClrLoadingState
.
LOADING
;
this
.
distributionService
.
UpdateInstance
({
i
nstance
Id
:
this
.
model
.
id
,
propertySet
:
data
this
.
distributionService
.
UpdateInstance
({
preheatI
nstance
Name
:
this
.
model
.
name
,
propertySet
:
data
}).
subscribe
(
response
=>
{
this
.
translate
.
get
(
'
DISTRIBUTION.UPDATE_SUCCESS
'
).
subscribe
(
msg
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment