Skip to content

Commit

Permalink
Add eslint-disable-next-line vue/no-v-html
Browse files Browse the repository at this point in the history
- Remove console.log for testing
  • Loading branch information
BenjaminCharmes authored and ml-evs committed Jun 19, 2024
1 parent 009bf61 commit 7c7d68f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
7 changes: 1 addition & 6 deletions webapp/src/components/BatchCreateSampleModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@
</td>
</tr>
<td colspan="3">
<!-- eslint-disable-next-line vue/no-v-html -->
<span class="form-error" v-html="sampleIDValidationMessages[index]" />
</td>
</template>
Expand Down Expand Up @@ -376,12 +377,6 @@ export default {
}
}
},
sampleIDValidationMessages(newValue) {
console.log("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$");
console.log("Sample ID validation messages changed:");
console.log(newValue);
console.log("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$");
},
},
methods: {
now() {
Expand Down
1 change: 1 addition & 0 deletions webapp/src/components/CreateCollectionModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
class="form-control"
required
/>
<!-- eslint-disable-next-line vue/no-v-html -->
<div class="form-error" v-html="IDValidationMessage"></div>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions webapp/src/components/CreateEquipmentModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<div class="form-group col-md-6">
<label for="equipment-id" class="col-form-label">ID:</label>
<input id="equipment-id" v-model="item_id" type="text" class="form-control" required />
<!-- eslint-disable-next-line vue/no-v-html -->
<div class="form-error" v-html="equipmentIDValidationMessage"></div>
</div>
<div class="form-group col-md-6">
Expand Down
3 changes: 2 additions & 1 deletion webapp/src/components/CreateItemModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
:disabled="generateIDAutomatically"
:required="!generateIDAutomatically"
/>
<div class="form-error" v-html="contactEmailValidationMessage"></div>
<!-- eslint-disable-next-line vue/no-v-html -->
<div class="form-error" v-html="itemIDValidationMessage"></div>
<div class="form-check mt-1 ml-1">
<input
id="create-item-auto-id-checkbox"
Expand Down
4 changes: 2 additions & 2 deletions webapp/src/components/EditAccountSettingsModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
class="form-control"
required
/>
<div class="form-error" v-html="displayNameValidationMessage"></div>
<div class="form-error">{{ displayNameValidationMessage }}</div>
</div>
</div>
<div class="form-row">
Expand All @@ -42,7 +42,7 @@
class="form-control"
placeholder="Please enter your email"
/>
<div class="form-error" v-html="contactEmailValidationMessage"></div>
<div class="form-error">{{ contactEmailValidationMessage }}</div>
</div>
</div>
<div class="form-row">
Expand Down
1 change: 1 addition & 0 deletions webapp/src/components/MessageBubble.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
}"
>
<span v-if="role === 'system'" class="system-prompt-label">system prompt:</span>
<!-- eslint-disable-next-line vue/no-v-html -->
<div v-show="!showRaw" ref="markdownDiv" class="markdown-content" v-html="markdownContent" />
<div v-show="showRaw" class="raw-content">{{ message.content }}</div>
<div class="float-right raw-toggle clickable" @click="showRaw = !showRaw">
Expand Down

0 comments on commit 7c7d68f

Please sign in to comment.