Skip to content

Commit

Permalink
remove redundant logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinBetanc0urt committed Jan 25, 2024
1 parent e764224 commit 33e5fd9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 53 deletions.
32 changes: 6 additions & 26 deletions src/components/ADempiere/Form/Issues/component/Comment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1246,33 +1246,13 @@
class="previwer-disable"
style="padding: 0px"
/>
<span v-else>
<el-descriptions :column="1">
<el-descriptions-item
v-for="log in comment.change_logs"
:key="log.id"
label-style="{ color: #606266; font-weight: bold; }"
>
<template slot="label">
<span style="color: #606266; font-weight: bold;padding-right: 5px;">
{{ log.label }}
</span>
({{ log.column_name }})
</template>
<span style="font-weight: bold;">
<el-link
:type="!isEmptyValue(log.displayed_value) ? 'success' : 'danger'"
:style="isEmptyValue(log.displayed_value) ? 'text-decoration:line-through;' : ''"
>
<b>
{{ isEmptyValue(log.displayed_value) ? 'NULL' : log.displayed_value }}
</b>
</el-link>
</span>
</el-descriptions-item>
</el-descriptions>
</span>
<issue-log
v-else-if="comment.issue_comment_type === 'LOG'"
:comment="comment"
class="list-comments"
/>
</span>

<span v-else>
<el-card v-if="commentUpdatePreview" shadow="never">
<el-scrollbar wrap-class="scroll-previwer-disable">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1245,34 +1245,13 @@
class="previwer-disable"
style="padding: 0px"
/>
<span v-else>
<el-descriptions :column="1">
<el-descriptions-item
v-for="log in comment.change_logs"
:key="log.id"
label-style="{ color: #606266; font-weight: bold; }"
>
<template slot="label">
<span style="color: #606266; font-weight: bold;padding-right: 5px;">
{{ log.label }}
</span>
({{ log.column_name }})
</template>
<span style="font-weight: bold;">
<el-link
:type="!isEmptyValue(log.displayed_value) ? 'success' : 'danger'"
:style="isEmptyValue(log.displayed_value) ? 'text-decoration:line-through;' : ''"
>
<b>
{{ isEmptyValue(log.displayed_value) ? 'NULL' : log.displayed_value }}
</b>
</el-link>
</span>
</el-descriptions-item>
</el-descriptions>
</span>
<issue-log
v-else-if="comment.issue_comment_type === 'LOG'"
:comment="comment"
class="list-comments"
/>
</span>
<v-md-preview v-if="!comment.isEdit" :text="comment.result" class="previwer-disable" style="padding: 0px" />

<span v-else>
<el-card v-if="commentUpdatePreview" shadow="never">
<el-scrollbar wrap-class="scroll-previwer-disable">
Expand Down

0 comments on commit 33e5fd9

Please sign in to comment.