Skip to content
Snippets Groups Projects
Commit cff4c496 authored by Tifenn Guillas's avatar Tifenn Guillas
Browse files

Merge branch '6-add-tests-for-instance-shared-search-module' into 'develop'

Fix SQ smelly code

Closes #6

See merge request !23
parents e6f90a98 7ca9297e
No related branches found
No related tags found
2 merge requests!29Develop,!23Fix SQ smelly code
Pipeline #6810 passed
Pipeline: anis-next

#6811

    ......@@ -41,7 +41,7 @@ export class DownloadComponent {
    * @return boolean
    */
    isDownloadActivated(): boolean {
    const dataset = this.datasetList.find(dataset => dataset.name === this.datasetSelected);
    const dataset = this.datasetList.find(d => d.name === this.datasetSelected);
    return dataset.config.download.download_enabled;
    }
    ......@@ -51,7 +51,7 @@ export class DownloadComponent {
    * @return boolean
    */
    isDownloadOpened(): boolean {
    const dataset = this.datasetList.find(dataset => dataset.name === this.datasetSelected);
    const dataset = this.datasetList.find(d => d.name === this.datasetSelected);
    return dataset.config.download.download_opened;
    }
    ......
    ......@@ -38,7 +38,7 @@ export class ReminderComponent {
    * @return boolean
    */
    isSummaryActivated(): boolean {
    const dataset = this.datasetList.find(dataset => dataset.name === this.datasetSelected);
    const dataset = this.datasetList.find(d => d.name === this.datasetSelected);
    return dataset.config.summary.summary_enabled;
    }
    ......@@ -48,7 +48,7 @@ export class ReminderComponent {
    * @return boolean
    */
    isSummaryOpened(): boolean {
    const dataset = this.datasetList.find(dataset => dataset.name === this.datasetSelected);
    const dataset = this.datasetList.find(d => d.name === this.datasetSelected);
    return dataset.config.summary.summary_opened;
    }
    ......
    ......@@ -33,7 +33,7 @@ export class SampComponent {
    * @return boolean
    */
    isSampActivated(): boolean {
    const dataset = this.datasetList.find(dataset => dataset.name === this.datasetSelected);
    const dataset = this.datasetList.find(d => d.name === this.datasetSelected);
    return dataset.config.samp.samp_enabled;
    }
    ......@@ -43,7 +43,7 @@ export class SampComponent {
    * @return boolean
    */
    isSampOpened(): boolean {
    const dataset = this.datasetList.find(dataset => dataset.name === this.datasetSelected);
    const dataset = this.datasetList.find(d => d.name === this.datasetSelected);
    return dataset.config.samp.samp_opened;
    }
    ......
    ......@@ -85,7 +85,7 @@ export class DatatableComponent implements OnInit {
    config = attribute.renderer_config as ImageRendererConfig;
    break;
    case 'json':
    config = attribute.renderer_config as RendererConfig;
    config = attribute.renderer_config;
    break;
    default:
    config = null;
    ......
    ......@@ -10,4 +10,4 @@
    export interface Column {
    name: string;
    type: string;
    };
    }
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment