Skip to content

Commit f00d582

Browse files
authored
Eagle eye related hotfixes (#52)
1 parent 32dd67c commit f00d582

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

frontend/src/modules/integration/components/integration-list.vue

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@
159159
>
160160
<el-form-item>
161161
<app-autocomplete-one-input
162+
v-model="twitter.hashtags[0]"
162163
:fetch-fn="() => []"
163164
:create-fn="createTwitterHashtag"
164-
:value="twitter.hashtags[0]"
165165
:allow-create="true"
166166
class="mt-2"
167167
placeholder="Type to select hashtag"
@@ -401,12 +401,6 @@ export default {
401401
return { id: value, label: `#${value}` }
402402
},
403403
404-
handleTwitterHashtagsInput(hashtag) {
405-
this.$nextTick(() => {
406-
this.twitter.hashtags = [hashtag]
407-
})
408-
},
409-
410404
statusToString(status) {
411405
if (status === 'done') {
412406
return 'Active'

frontend/src/premium/eagle-eye/components/eagle-eye-list-item.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ export default {
175175
176176
&-text {
177177
@apply text-sm text-gray-600;
178+
179+
pre,
180+
code {
181+
@apply whitespace-pre-wrap;
182+
}
178183
}
179184
}
180185
}

frontend/src/shared/form/keywords-input.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
@input="inputKeyword"
2929
@keydown.delete.stop="removeLastKeyword"
3030
@keydown="addNew"
31-
@blur="addNew"
31+
@blur="blur"
3232
/>
3333
</div>
3434
<span
@@ -88,6 +88,10 @@ export default {
8888
inputKeyword(ev) {
8989
this.newKeyword = ev.target.value
9090
},
91+
blur(e) {
92+
this.focused = false
93+
this.addNew(e)
94+
},
9195
addNew(e) {
9296
if (
9397
e &&
@@ -116,7 +120,6 @@ export default {
116120
this.keywordChange()
117121
this.newKeyword = ''
118122
}
119-
this.focused = false
120123
},
121124
addKeyword(keyword) {
122125
keyword = keyword.trim()
@@ -162,6 +165,7 @@ export default {
162165
.el-tag {
163166
margin: 4px 0 4px 4px;
164167
}
168+
165169
&.is-focus {
166170
border: 1px solid #0068bd;
167171
}

0 commit comments

Comments
 (0)