Skip to content

Commit

Permalink
Adding the title input field for reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
Achraffawzi committed Aug 7, 2021
1 parent a1f4758 commit 79bef2c
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions FRONT_END/src/views/User/UserDashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,20 @@

<v-card-text>
<v-rating
v-model="rating"
v-model="newRating.rating"
color="primary"
hover
length="5"
size="25"
></v-rating>
<v-form ref="opinionForm">
<v-text-field
v-model="newRating.title"
label="Title"
>
</v-text-field>
<v-textarea
v-model="opinion"
v-model="newRating.opinion"
:rules="opinionRule"
label="Opinion"
></v-textarea>
Expand Down Expand Up @@ -140,8 +145,11 @@ export default {
drawer: true,
// Rating data
Ratingdialog: false,
opinion: "",
rating: 0,
newRating: {
rating: 0,
title: "",
opinion: "",
},
rateusLoading: false,
// Binding All links
Expand All @@ -155,7 +163,6 @@ export default {
],
accountRouteObj: [
{ title: "Settings", route: "/Settings" },
{ title: "Sign out", route: "/Signout" },
],
// Rule for description length
opinionRule: [
Expand Down

0 comments on commit 79bef2c

Please sign in to comment.