This commit is contained in:
parent
70516db074
commit
c26152d3c5
2 changed files with 5 additions and 4 deletions
|
@ -9,6 +9,7 @@ class RelationSerializer(serializers.ModelSerializer):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = ItemRelation
|
model = ItemRelation
|
||||||
fields = ('id', 'status', 'timestamp', 'item', 'issue_thread')
|
fields = ('id', 'status', 'timestamp', 'item', 'issue_thread')
|
||||||
|
read_only_fields = ('id', 'timestamp')
|
||||||
|
|
||||||
|
|
||||||
class BasicIssueSerializer(serializers.ModelSerializer):
|
class BasicIssueSerializer(serializers.ModelSerializer):
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<textarea placeholder="add comment..." v-model="newComment"
|
<textarea placeholder="add comment..." v-model="newComment"
|
||||||
class="form-control">
|
class="form-control">
|
||||||
</textarea>
|
</textarea>
|
||||||
<AsyncButton class="btn btn-primary float-right" :task="addCommentAndClear">
|
<AsyncButton class="btn btn-secondary float-right" :task="addCommentAndClear">
|
||||||
<font-awesome-icon icon="comment"/>
|
<font-awesome-icon icon="comment"/>
|
||||||
Save Comment
|
Save Comment
|
||||||
</AsyncButton>
|
</AsyncButton>
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:timeline_action2>
|
<template v-slot:timeline_action2>
|
||||||
<span class="timeline-item-icon | faded-icon">
|
<span class="timeline-item-icon | filled-icon">
|
||||||
<font-awesome-icon icon="envelope"/>
|
<font-awesome-icon icon="envelope"/>
|
||||||
</span>
|
</span>
|
||||||
<div class="new-mail card bg-dark">
|
<div class="new-mail card bg-dark">
|
||||||
|
@ -83,8 +83,8 @@
|
||||||
</ClipboardButton>
|
</ClipboardButton>
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<input type="text" class="form-control" v-model="item_id">
|
<input type="text" class="form-control" v-model="item_id">
|
||||||
<button class="form-control btn btn-success"
|
<button class="form-control btn btn-success" :disabled="!item_id"
|
||||||
@click="linkTicketItem({ticket_id: ticket.id, item_id: item_id}).then(()=>item_id='')">
|
@click="linkTicketItem({ticket_id: ticket.id, item_id: parseInt(item_id)}).then(()=>item_id='')">
|
||||||
Link Item
|
Link Item
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue