From 6d596e9290b6295fdb7437e08b840532caf2f286 Mon Sep 17 00:00:00 2001 From: Julian Matschinske <julian.matschinske@wzw.tum.de> Date: Sat, 11 Apr 2020 00:15:34 +0200 Subject: [PATCH] Add scores to super analysis Score was not displayed for the new super button --- src/app/analysis.service.ts | 2 +- src/app/components/analysis-window/analysis-window.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/analysis.service.ts b/src/app/analysis.service.ts index 4b040e5c..48e2f738 100644 --- a/src/app/analysis.service.ts +++ b/src/app/analysis.service.ts @@ -6,7 +6,7 @@ import {toast} from 'bulma-toast'; import {Injectable} from '@angular/core'; export type AlgorithmType = 'trustrank' | 'keypathwayminer' | 'multisteiner' | 'closeness' | 'degree'; -export type QuickAlgorithmType = 'quick'; +export type QuickAlgorithmType = 'quick' | 'super'; export const algorithmNames = { trustrank: 'Trust-Rank', diff --git a/src/app/components/analysis-window/analysis-window.component.ts b/src/app/components/analysis-window/analysis-window.component.ts index e167fc61..c933e747 100644 --- a/src/app/components/analysis-window/analysis-window.component.ts +++ b/src/app/components/analysis-window/analysis-window.component.ts @@ -135,7 +135,7 @@ export class AnalysisWindowComponent implements OnInit, OnChanges { })); await Promise.all(promises); - this.tableHasScores = ['trustrank', 'closeness', 'degree', 'quick'].indexOf(this.task.info.algorithm) !== -1; + this.tableHasScores = ['trustrank', 'closeness', 'degree', 'quick', 'super'].indexOf(this.task.info.algorithm) !== -1; if (this.tableHasScores) { this.toggleNormalization(true); } -- GitLab