Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

Commit a0a8fcd

Browse files
update CodeModal and add a few todo comments
1 parent 00582c8 commit a0a8fcd

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

src/views/Voting/CodeModal.vue

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,22 @@ import { User } from "@/store";
9898
import "highlight.js/styles/darcula.css";
9999
100100
export default {
101+
name: "CodeModal",
101102
components: {
102103
SuccessModal
103104
},
105+
// TODO: validate props
106+
props: [
107+
"display",
108+
"firstName",
109+
"id",
110+
"lastName",
111+
"numVotes",
112+
"text",
113+
"username",
114+
"value",
115+
"initials"
116+
],
104117
data() {
105118
return {
106119
showSuccess: false,
@@ -181,17 +194,6 @@ export default {
181194
);
182195
}
183196
},
184-
props: [
185-
"display",
186-
"firstName",
187-
"id",
188-
"lastName",
189-
"numVotes",
190-
"text",
191-
"username",
192-
"value",
193-
"initials"
194-
],
195197
watch: {
196198
isOpen() {
197199
if (this.isOpen != this.value) {

0 commit comments

Comments
 (0)