Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: кнопка "оставить первый отзыв" #43

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/pages/LecturerPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,20 @@ const lecturerPhoto = getPhoto(avatarLink.value);
</v-footer>
</div>

<div v-else>
<v-btn
no-gutters
color="secondary"
rounded="xl"
height="100px"
width="1000px"
class="btn-text"
@click="router.push({ path: 'review', query: { lecturer_id: lecturerId } })"
>
Оставить первый отзыв
</v-btn>
</div>

<!-- <v-fab class="position-fixed bottom-0 mb-10" :icon="'mdi-pen'" color="primary" /> -->
</v-container>
</template>
Expand All @@ -132,6 +146,10 @@ const lecturerPhoto = getPhoto(avatarLink.value);
background-color: #0000;
}

.btn-text {
font-size: 28px;
}

.footer-button {
position: absolute;
right: 10px;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ReviewPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ async function sendReview() {
</div>
</div>
<div>
<v-switch v-model="isAnonymous" color="primary" label="Аноимный отзыв" hide-details />
<v-switch v-model="isAnonymous" color="primary" label="Анонимный отзыв" hide-details />
</div>

<v-btn color="secondary" class="mt-3" rounded="pill" text="отправить" @click="sendReview"></v-btn>
Expand Down
Loading