Correct error when transitioning between thematiques tabs and others (bug #0025983) + correct scroll for themes
import Ember from 'ember';
import layout from '../templates/components/doc-olac';
import DocLiteral from './doc-literal';
import * as utils from 'corpus-common-addon/utils/utils';
export default DocLiteral.extend({
layout,
olacUrl: Ember.computed('url', function () {
const url = this.get('url');
const value = this.get('value');
const olacDef = utils.getOLACBaseUrl(url);
if (!olacDef) {
return '';
}
return olacDef.baseUrl + value;
})
});