-
Notifications
You must be signed in to change notification settings - Fork 0
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
admin create notification page and route #160
Conversation
8ecccbd
to
32a755a
Compare
Can you align the "Send Notifications to Selected Students" button to the left instead of the middle? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few more comments then I'll approve
}, | ||
methods: { | ||
goToStudentCoop() { | ||
this.$router.push("/admin/studentcoops"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: change this route to /admin/student-coops
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this isnt even a real page but ok lol
@click="sendNotification()" | ||
label="Send Notification" | ||
class="notifPageComponents" | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a q-spinner
here that should show while the notifications are being created (just better for UX, it's been done in a bunch of other pages/components already)
|
||
<style scoped lang="scss"> | ||
h6 { | ||
margin: 10px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use the q-ma-md
class instead of defining the styles yourself (ma
= margin-all, md
= medium). https://quasar.dev/style/spacing#Examples
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this literally never ends up working the way i want it to so i really dont want to waste more time trying to get this shit to align properly so i dont rlly want to go down this road again
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok no worries it's not a big deal
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just left one comment for the q-btn
/> | ||
<q-btn | ||
v-if="!sending" | ||
color="primary" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add :disabled="sending"
here to disable the button while it's sending
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it doesnt show up when its sending tho
|
||
<style scoped lang="scss"> | ||
h6 { | ||
margin: 10px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok no worries it's not a big deal
Summary
From the student list page, the admin can filter students to select who they want to send a notification to by choosing students then clicking the button below the table.
This brings them to a page where they can modify the list of students and write a title and body for the notification.
Test Plan
How did you test your changes?
screenshots are attached
Related Issues
Which issues does this PR resolve/work on?
#104