style: lint
Build / Build-and-ng-test (pull_request) Failing after 16s
Details
Build / Build-and-ng-test (pull_request) Failing after 16s
Details
This commit is contained in:
parent
c5e4650327
commit
227ac480d5
|
@ -1,9 +1,9 @@
|
|||
import { BaseSASResponse } from "./common/BaseSASResponse";
|
||||
import { BaseSASResponse } from './common/BaseSASResponse'
|
||||
|
||||
export interface EditorsRestoreServiceResponse extends BaseSASResponse {
|
||||
restore_out: RestoreOut[]
|
||||
restore_out: RestoreOut[]
|
||||
}
|
||||
|
||||
export interface RestoreOut {
|
||||
LOADREF: string
|
||||
}
|
||||
}
|
||||
|
|
|
@ -174,15 +174,18 @@ export class StageComponent implements OnInit {
|
|||
]
|
||||
}
|
||||
|
||||
this.sasService.request('editors/restore', data).then((res: EditorsRestoreServiceResponse) => {
|
||||
if (res.restore_out) {
|
||||
this.route.navigate([`/stage`]).then(() => {
|
||||
this.route.navigate([`/stage/${res.restore_out[0].LOADREF}`])
|
||||
})
|
||||
}
|
||||
}).finally(() => {
|
||||
this.revertingChanges = false
|
||||
})
|
||||
this.sasService
|
||||
.request('editors/restore', data)
|
||||
.then((res: EditorsRestoreServiceResponse) => {
|
||||
if (res.restore_out) {
|
||||
this.route.navigate([`/stage`]).then(() => {
|
||||
this.route.navigate([`/stage/${res.restore_out[0].LOADREF}`])
|
||||
})
|
||||
}
|
||||
})
|
||||
.finally(() => {
|
||||
this.revertingChanges = false
|
||||
})
|
||||
}
|
||||
|
||||
private setFocus() {
|
||||
|
|
Loading…
Reference in New Issue