Skip to content

Commit

Permalink
Merge branch 'develop' into newModeratedTest
Browse files Browse the repository at this point in the history
  • Loading branch information
jvJUCA committed Apr 17, 2024
2 parents a55de3b + 76758e6 commit c4dc3bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
<div align="center">
<h1>Welcome to UX Remote LAB</h1>
<p><strong>UX Remote LAB</strong> is a user-friendly platform for usability testing and heuristic evaluation. Designed and provided by <a href="https://retlab-dev.firebaseapp.com/">UX Remote LAB</a>, it is a web application developed to assist project creators in gathering valuable insights from their users.</p>
</div>

<div align="center">
<a href="https://retlab-dev.firebaseapp.com/"><strong>Read The Docs</strong></a>
</div>
<div align="center">
<a href="https://retlab-dev.firebaseapp.com/">Live Demo</a>
<p><strong>UX Remote LAB</strong> is a user-friendly platform for usability testing and heuristic evaluation. Designed and provided by UX Remote LAB, it is a web application developed to assist project creators in gathering valuable insights from their users.</p>
</div>

<hr />
Expand Down
8 changes: 6 additions & 2 deletions src/components/molecules/OptionsTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ export default {
},
updateOptions() {
if (this.editIndex == -1) {
this.option.timestamp = Date.now() // using the current timestamp as a unique identifier
this.options.push(this.option)
} else {
Object.assign(this.options[this.editIndex], this.option)
Expand All @@ -141,10 +142,13 @@ export default {
this.hasValue = true
},
deleteItem(item) {
this.options.splice(this.options.indexOf(item), 1)
const index = this.options.findIndex((option) => option.timestamp === item.timestamp)
if (index !== -1) {
this.options.splice(index, 1)
}
},
editItem(item) {
this.editIndex = this.options.indexOf(item)
this.editIndex = this.options.findIndex((option) => option.timestamp === item.timestamp)
this.option.text = this.options[this.editIndex].text
this.option.value = this.options[this.editIndex].value
Expand Down

0 comments on commit c4dc3bb

Please sign in to comment.