@equinor/fusion-react-power-bi
Version:
React component for displaying an person information
21 lines • 875 B
JavaScript
import { EpicReducer } from '@equinor/fusion/lib/epic';
import { actions } from './actions';
export class Store extends EpicReducer {
set contextAccess(value) {
this.dispatch(actions.setContextAccess(value));
}
requestEmbedInfo() {
this.dispatch(actions.fetchEmbedInfo.request(this.value.id));
return () => this.dispatch(actions.fetchEmbedInfo.cancel());
}
requestAccessToken(silent) {
this.dispatch(actions.fetchAccessToken.request({ reportId: this.value.id, silent: !!silent }));
return () => this.dispatch(actions.fetchAccessToken.cancel());
}
checkContextAccess(args) {
this.dispatch(actions.checkContextAccess.request({ reportId: this.value.id, ...args }));
return () => this.dispatch(actions.checkContextAccess.cancel());
}
}
export default Store;
//# sourceMappingURL=store.js.map