Skip to content

Commit

Permalink
Merge pull request #26 from ConductionNL/feature/CONNECTOR-65/source-…
Browse files Browse the repository at this point in the history
…correct-tabs

changed sources tabs
  • Loading branch information
remko48 authored Oct 11, 2024
2 parents 81fc1af + 55ddae8 commit c5a463d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 42 deletions.
2 changes: 1 addition & 1 deletion src/modals/Source/EditSource.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { sourceStore, navigationStore } from '../../store/store.js'
label-id="editSource"
@close="closeModal">
<div class="modalContent">
<h2>{{ sourceItem.id ? 'Edit' : 'Add' }} Source</h2>
<h2>{{ sourceItem?.id ? 'Edit' : 'Add' }} Source</h2>
<NcNoteCard v-if="success" type="success">
<p>Source successfully added</p>
</NcNoteCard>
Expand Down
46 changes: 5 additions & 41 deletions src/views/Source/SourceDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,45 +89,11 @@ import { sourceStore, navigationStore, logStore } from '../../store/store.js'
No configurations found
</div>
</BTab>
<BTab title="Mappings">
<div v-if="sourceStore?.sourceItem?.mappings?.length">
<NcListItem v-for="(character, i) in filterCharacters"
:key="character.id + i"
:name="character.name"
:bold="false"
:force-display-actions="true">
<template #icon>
<BriefcaseAccountOutline disable-menu
:size="44" />
</template>
<template #subname>
{{ character.description }}
</template>
</NcListItem>
</div>
<div v-if="!sourceStore?.sourceItem?.mappings?.length" class="tabPanel">
No mappings found
</div>
<BTab title="Endpoints" class="tabPanel">
No endpoints found
</BTab>
<BTab title="Jobs">
<div v-if="sourceStore?.sourceItem?.jobs?.length">
<NcListItem v-for="(character, i) in filterCharacters"
:key="character.id + i"
:name="character.name"
:bold="false"
:force-display-actions="true">
<template #icon>
<BriefcaseAccountOutline disable-menu
:size="44" />
</template>
<template #subname>
{{ character.description }}
</template>
</NcListItem>
</div>
<div v-if="!sourceStore?.sourceItem?.jobs?.length" class="tabPanel">
No jobs found
</div>
<BTab title="Synchronizations" class="tabPanel">
No synchronizations found
</BTab>
<BTab title="Logs">
<div v-if="sourceStore.sourceLogs?.length">
Expand Down Expand Up @@ -182,13 +148,11 @@ import DotsHorizontal from 'vue-material-design-icons/DotsHorizontal.vue'
import Pencil from 'vue-material-design-icons/Pencil.vue'
import TrashCanOutline from 'vue-material-design-icons/TrashCanOutline.vue'
import Sync from 'vue-material-design-icons/Sync.vue'
import BriefcaseAccountOutline from 'vue-material-design-icons/BriefcaseAccountOutline.vue'
import TimelineQuestionOutline from 'vue-material-design-icons/TimelineQuestionOutline.vue'
import Delete from 'vue-material-design-icons/Delete.vue'
import FileCogOutline from 'vue-material-design-icons/FileCogOutline.vue'
import Plus from 'vue-material-design-icons/Plus.vue'
import MathLog from 'vue-material-design-icons/MathLog.vue'
import EyeOutline from 'vue-material-design-icons/EyeOutline.vue'
import FileCogOutline from 'vue-material-design-icons/FileCogOutline.vue'
export default {
name: 'SourceDetails',
Expand Down

0 comments on commit c5a463d

Please sign in to comment.