biome format --write
This commit is contained in:
parent
8372348148
commit
9262e803ec
415 changed files with 54076 additions and 17419 deletions
|
|
@ -8,17 +8,13 @@ import { library } from '@fortawesome/fontawesome-svg-core'
|
|||
import {
|
||||
faTimes,
|
||||
faPlus,
|
||||
faCircleNotch
|
||||
faCircleNotch,
|
||||
} from '@fortawesome/free-solid-svg-icons'
|
||||
|
||||
library.add(
|
||||
faTimes,
|
||||
faPlus,
|
||||
faCircleNotch
|
||||
)
|
||||
library.add(faTimes, faPlus, faCircleNotch)
|
||||
|
||||
const ProfileTab = {
|
||||
data () {
|
||||
data() {
|
||||
return {
|
||||
// Whether user is locked or not
|
||||
locked: this.$store.state.users.currentUser.locked,
|
||||
|
|
@ -28,18 +24,18 @@ const ProfileTab = {
|
|||
UserCard,
|
||||
Checkbox,
|
||||
BooleanSetting,
|
||||
ProfileSettingIndicator
|
||||
ProfileSettingIndicator,
|
||||
},
|
||||
computed: {
|
||||
user () {
|
||||
user() {
|
||||
return this.$store.state.users.currentUser
|
||||
},
|
||||
...SharedComputedObject()
|
||||
...SharedComputedObject(),
|
||||
},
|
||||
methods: {
|
||||
updateProfile () {
|
||||
updateProfile() {
|
||||
const params = {
|
||||
locked: this.locked
|
||||
locked: this.locked,
|
||||
}
|
||||
|
||||
this.$store.state.api.backendInteractor
|
||||
|
|
@ -51,13 +47,13 @@ const ProfileTab = {
|
|||
.catch((error) => {
|
||||
this.displayUploadError(error)
|
||||
})
|
||||
}
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
locked () {
|
||||
locked() {
|
||||
this.updateProfile()
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
export default ProfileTab
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue