Skip to content
Snippets Groups Projects
Commit 716a6831 authored by Kostopoulos, Eric (UG - Computer Science)'s avatar Kostopoulos, Eric (UG - Computer Science)
Browse files

Added Change your password dropdown window

parent decfb81c
No related branches found
No related tags found
No related merge requests found
<template lang='pug'> <template lang='pug'>
.q-pa-md.row.justify-center.full-width //- q-btn.bg-grey-2f.float-left.q-ma-sm(@click='$router.go(-1)', icon='arrow_back', label='Back')
div(style='max-width: 1000px') q-list.q-pa-sm(bordered, style='max-width: 1000px')
q-title.text-h4 Settings q-item-label.text-h5(header) Settings
q-list(bordered, padding) q-item-label(header) User Controls
q-item-label(header) User Controls q-item
q-item(clickable, v-ripple) q-item-section
q-item-section q-item-label Password
q-item-label Password q-expansion-item(label='Change Password')
q-item-label(caption) Change your Password q-card
q-separator(spaced) q-card-section
q-item-label(header) General q-input.q-pb-md(v-model='OldPassword', label='Old Password', stack-label)
q-item(tag='label', v-ripple) q-input.q-pb-md(v-model='NewPassword', label='New Password', stack-label)
q-item-section(side, top) q-btn.float-right(icon='save', color='green', label='save')
q-checkbox(v-model='check1') q-separator(spaced)
q-item-section q-item-label(header) General
q-item-label Notifications q-item(tag='label', v-ripple)
q-item-label(caption) Notify me about updates q-item-section(side, top)
q-item(tag='label', v-ripple) q-checkbox(v-model='check1')
q-item-section(side, top) q-item-section
q-checkbox(v-model='check2') q-item-label Notifications
q-item-section q-item-label(caption) Notify me about updates
q-item-label Dark Mode q-item(tag='label', v-ripple)
q-item-label(caption) Turn on Darkmode q-item-section(side, top)
q-separator(spaced) q-checkbox(v-model='check2')
q-item-label(header) Notifications q-item-section
q-item(tag='label', v-ripple) q-item-label Dark Mode
q-item-section q-item-label(caption, @click='darkThemeSwitch') Turn on Darkmode
q-item-label Battery too low
q-item-section(side) q-separator(spaced)
q-toggle(color='blue', v-model='notif1', val='battery') q-item-label(header) Notifications
q-item(tag='label', v-ripple) q-item(tag='label', v-ripple)
q-item-section q-item-section
q-item-label Friend request q-item-label Battery too low
q-item-label(caption) Allow notification q-item-section(side)
q-item-section(side, top) q-toggle(color='blue', v-model='notif1', val='battery')
q-toggle(color='green', v-model='notif2', val='friend') q-item(tag='label', v-ripple)
q-separator(spaced) q-item-section
q-item-label(header) Other settings q-item-label Friend request
q-item q-item-label(caption) Allow notification
q-item-section(side) q-item-section(side, top)
q-icon(color='deep-orange', name='brightness_medium') q-toggle(color='green', v-model='notif2', val='friend')
q-item-section q-separator(spaced)
q-slider(v-model='brightness', :min='0', :max='10', label, color='deep-orange') q-item-label(header) Other settings
q-item
q-item-section(side)
q-icon(color='deep-orange', name='brightness_medium')
q-item-section
q-slider(v-model='brightness', :min='0', :max='10', label, color='deep-orange')
</template> </template>
<script> <script>
import { useQuasar } from 'quasar'
export default { export default {
data() { data() {
return { return {
...@@ -53,6 +59,31 @@ export default { ...@@ -53,6 +59,31 @@ export default {
notif2: true, notif2: true,
brightness: 3 brightness: 3
} }
// },
// methods: {
// _addDarkTheme() {
// let darkThemeLinkEl = document.createElement('link')
// darkThemeLinkEl.setAttribute('rel', 'stylesheet')
// darkThemeLinkEl.setAttribute('href', '/css/darktheme.css')
// darkThemeLinkEl.setAttribute('id', 'dark-theme-style')
// let docHead = document.querySelector('head')
// docHead.append(darkThemeLinkEl)
// },
// _removeDarkTheme() {
// let darkThemeLinkEl = document.querySelector('#dark-theme-style')
// let parentNode = darkThemeLinkEl.parentNode
// parentNode.removeChild(darkThemeLinkEl)
// },
// darkThemeSwitch() {
// let darkThemeLinkEl = document.querySelector('#dark-theme-style')
// if (!darkThemeLinkEl) {
// this._addDarkTheme()
// } else {
// this._removeDarkTheme()
// }
// }
// }
} }
} }
</script> </script>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment