Merge pull request #4138 from pengpengshui/batchDelection

Modify create endpoint ping icon undisappear auto about #4102
This commit is contained in:
pengpengshui 2018-01-26 16:42:54 +08:00 committed by GitHub
commit cb6b6ac71d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 5 deletions

View File

@ -248,6 +248,7 @@ export class CreateEditEndpointComponent implements AfterViewChecked, OnDestroy
.subscribe(res => {
this.inlineAlert.showInlineError(res);
});
this.forceRefreshView(1000);
}
);
this.forceRefreshView(1000);
@ -294,9 +295,10 @@ export class CreateEditEndpointComponent implements AfterViewChecked, OnDestroy
this.inlineAlert.showInlineError(res);
});
this.onGoing = false;
this.forceRefreshView(1000);
}
);
this.forceRefreshView(100);
this.forceRefreshView(1000);
}
handleErrorMessageKey(status: number): string {

View File

@ -31,7 +31,7 @@
"clarity-icons": "^0.10.17",
"clarity-ui": "^0.10.17",
"core-js": "^2.4.1",
"harbor-ui": "0.6.33",
"harbor-ui": "0.6.34",
"intl": "^1.2.5",
"mutationobserver-shim": "^0.3.2",
"ngx-cookie": "^1.0.0",

View File

@ -118,11 +118,11 @@
</div>
</div>
<div class="offset-md-4">
<div>
<span class="spinner spinner-inline" [hidden]="inProgress === false"></span>
<br>
<button type="button" id="ruleBtnCancel" class="btn btn-outline" [disabled]="!hasFormChange() || this.inProgress || this.isSubmitOver" (click)="onCancel()">{{ 'BUTTON.CANCEL' | translate }}</button>
<button type="submit" id="ruleBtnOk" class="btn btn-primary" (click)="onSubmit()" [disabled]="!ruleForm.valid || !isVaild || !hasFormChange()">{{ 'BUTTON.OK' | translate }}</button>
<button type="submit" id="ruleBtnOk" class="btn btn-primary" (click)="onSubmit()" [disabled]="!ruleForm.valid || !isVaild || !hasFormChange()">{{ 'BUTTON.SAVE' | translate }}</button>
<button type="button" id="ruleBtnCancel" class="btn btn-outline" [disabled]="this.inProgress || this.isSubmitOver" (click)="onCancel()">{{ 'BUTTON.CANCEL' | translate }}</button>
</div><!-- [disabled]="!ruleForm.valid"-->
</section>
</form>