19 lines
631 B
JavaScript
19 lines
631 B
JavaScript
import { LightningElement,wire,track} from 'lwc';
|
|
import getOrgHealthCheckList from '@salesforce/apex/orgHealthCheckController.getOrgHealthCheckList';
|
|
|
|
export default class OrgHealthCheck extends LightningElement {
|
|
@wire(getOrgHealthCheckList) healthCheckList;
|
|
@track progress = 300000;
|
|
|
|
connectedCallback() {
|
|
this._interval = setInterval(() => {
|
|
this.progress = this.progress + 300000;
|
|
window.location.reload();
|
|
if ( this.progress === 54864000000 ) {
|
|
clearInterval(this._interval);
|
|
}
|
|
}, this.progress);
|
|
|
|
}
|
|
|
|
} |