mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 20:26:13 +01:00
Merge pull request #12459 from AllForNothing/instance-name
Query preheat instance by name
This commit is contained in:
commit
85f53bbfc4
@ -169,7 +169,7 @@ export class DistributionInstancesComponent implements OnInit, OnDestroy {
|
||||
this.operationService.publishInfo(operMessage);
|
||||
this.disService.UpdateInstance({
|
||||
propertySet: {default: true},
|
||||
instanceId: this.selectedRow[0].id
|
||||
preheatInstanceName: 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({instanceId: instance.id}).pipe(
|
||||
return this.disService.DeleteInstance({preheatInstanceName: 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},
|
||||
instanceId: instance.id
|
||||
preheatInstanceName: instance.name
|
||||
})
|
||||
.pipe(
|
||||
map(() => {
|
||||
@ -339,7 +339,7 @@ export class DistributionInstancesComponent implements OnInit, OnDestroy {
|
||||
return this.disService
|
||||
.UpdateInstance({
|
||||
propertySet: {enabled: false},
|
||||
instanceId: instance.id
|
||||
preheatInstanceName: instance.name
|
||||
})
|
||||
.pipe(
|
||||
map(() => {
|
||||
|
@ -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({instanceId: this.model.id, propertySet: data
|
||||
this.distributionService.UpdateInstance({preheatInstanceName: this.model.name, propertySet: data
|
||||
}).subscribe(
|
||||
response => {
|
||||
this.translate.get('DISTRIBUTION.UPDATE_SUCCESS').subscribe(msg => {
|
||||
|
Loading…
Reference in New Issue
Block a user