Skip to content

Commit

Permalink
♻️ refactor: Perform linting checks
Browse files Browse the repository at this point in the history
  • Loading branch information
alpteo committed Mar 10, 2021
1 parent a0d6474 commit ec08e37
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 43 deletions.
20 changes: 10 additions & 10 deletions src/components/Deidentifier.vue
Original file line number Diff line number Diff line change
Expand Up @@ -425,18 +425,18 @@ export default class Deidentifier extends Mixins(StatusMixin) {
this.deidentificationStatus = Status.PENDING;
}
// Set showBanner
if (sessionStorage.getItem('showBannerDeidentifier')) {
this.showBanner = sessionStorage.getItem('showBannerDeidentifier') === 'true'
} else {
this.showBanner = true;
}
// Set showBanner
if (sessionStorage.getItem('showBannerDeidentifier')) {
this.showBanner = sessionStorage.getItem('showBannerDeidentifier') === 'true';
} else {
this.showBanner = true;
}
}
setShowBanner (value: boolean) {
sessionStorage.setItem('showBannerDeidentifier', String(value))
this.showBanner = value
}
setShowBanner (value: boolean) {
sessionStorage.setItem('showBannerDeidentifier', String(value));
this.showBanner = value;
}
fetchAllData (groupedByResources): Promise<any> {
const dataPromises = groupedByResources.map(profileGroups => {
Expand Down
46 changes: 23 additions & 23 deletions src/components/tables/FhirAttributeTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,11 @@ export default class FhirAttributeTable extends Vue {
});
// Set showBanner
if (sessionStorage.getItem('showBannerFhirAttribute')) {
this.showBanner = sessionStorage.getItem('showBannerFhirAttribute') === 'true'
} else {
this.showBanner = true;
}
if (sessionStorage.getItem('showBannerFhirAttribute')) {
this.showBanner = sessionStorage.getItem('showBannerFhirAttribute') === 'true';
} else {
this.showBanner = true;
}
}
@Watch('currentFHIRRes')
Expand All @@ -300,20 +300,20 @@ export default class FhirAttributeTable extends Vue {
this.getElements();
}
setShowBanner (value: boolean) {
sessionStorage.setItem('showBannerFhirAttribute', String(value))
this.showBanner = value
}
setShowBanner (value: boolean) {
sessionStorage.setItem('showBannerFhirAttribute', String(value))
this.showBanner = value
}
getElements () {
const params = {parameterName: '', profile: ''};
if (this.currentFHIRProf) {
params.parameterName = 'url';
params.profile = this.currentFHIRProf;
} else {
params.parameterName = '_id';
params.profile = this.currentFHIRRes;
}
const params = {parameterName: '', profile: ''};
if (this.currentFHIRProf) {
params.parameterName = 'url';
params.profile = this.currentFHIRProf;
} else {
params.parameterName = '_id';
params.profile = this.currentFHIRRes;
}
this.$store.dispatch(types.Fhir.GET_ELEMENTS, params)
.then(response => {
this.loadingFhir = false;
Expand All @@ -326,7 +326,7 @@ export default class FhirAttributeTable extends Vue {
.catch(() => {
this.loadingFhir = false;
if (!this.currentFHIRProf) {
this.$notify.error(String(this.$t('ERROR.X_RESOURCE_ELEMENTS_COULDNT_BE_LOADED', {resource: this.currentFHIRRes})))
this.$notify.error(String(this.$t('ERROR.X_RESOURCE_ELEMENTS_COULDNT_BE_LOADED', {resource: this.currentFHIRRes})));
} else {
this.$notify.error(String(this.$t('ERROR.X_PROFILE_ELEMENTS_COULDNT_BE_LOADED', {profile: this.currentFHIRProf})));
}
Expand Down Expand Up @@ -362,9 +362,9 @@ export default class FhirAttributeTable extends Vue {
}
onSelected (target) {
if (target) this.splitterModel = 50;
else this.splitterModel = 100;
this.selectedStr = target;
if (target) this.splitterModel = 50;
else this.splitterModel = 100;
this.selectedStr = target;
const filtered = this.fhirElementListFlat.filter(item => item.value === target);
this.selectedElem = filtered.length ? filtered[0] : null
}
Expand All @@ -379,8 +379,8 @@ export default class FhirAttributeTable extends Vue {
(this.typeMappings[node.value] && this.typeMappings[node.value].toLowerCase().includes(filt));
}
sortProfiles (profiles: string[]) {
return FHIRUtils.sortProfiles(profiles)
sortProfiles (profiles: string[]) {
return FHIRUtils.sortProfiles(profiles)
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/tables/QuasiIdentifierTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ export default class QuasiIdentifierTable extends Vue {
}
onSelected (target) {
if (target) this.splitterModel = 50;
else this.splitterModel = 100;
this.selectedStr = target;
if (target) this.splitterModel = 50;
else this.splitterModel = 100;
this.selectedStr = target;
const filtered = this.fhirElementListFlat.filter(item => item.value === target);
this.selectedElem = filtered.length ? filtered[0] : null
}
Expand Down
14 changes: 7 additions & 7 deletions src/components/tables/SensitiveAttributeTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,11 @@
</template>

<script lang="ts">
import {Component, Vue, Watch} from 'vue-property-decorator'
import Loading from '@/components/Loading.vue';
import {VuexStoreUtil as types} from '@/common/utils/vuex-store-util';
import {Component, Vue, Watch} from 'vue-property-decorator'
import Loading from '@/components/Loading.vue';
import {VuexStoreUtil as types} from '@/common/utils/vuex-store-util';
@Component({
@Component({
components: {
AlgorithmConfigDialog: () => ({
component: import('@/components/AlgorithmConfigDialog.vue'),
Expand Down Expand Up @@ -215,9 +215,9 @@ export default class SensitiveAttributeTable extends Vue {
}
onSelected (target) {
if (target) this.splitterModel = 50;
else this.splitterModel = 100;
this.selectedStr = target;
if (target) this.splitterModel = 50;
else this.splitterModel = 100;
this.selectedStr = target;
const filtered = this.fhirElementListFlat.filter(item => item.value === target);
this.selectedElem = filtered.length ? filtered[0] : null
}
Expand Down

0 comments on commit ec08e37

Please sign in to comment.