Modify create endpoint ping icon undisappear auto about #4102

This commit is contained in:
pfh 2018-01-26 15:44:10 +08:00
parent 1dc6e57ffd
commit cc894a39bf
3 changed files with 7 additions and 5 deletions

View File

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

View File

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

View File

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