mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 11:23:08 +02:00
Clean up
This commit is contained in:
parent
f2f0799df1
commit
26b3a14a63
2 changed files with 0 additions and 9 deletions
|
@ -384,17 +384,14 @@ export default Vue.extend({
|
||||||
to: '/my/settings',
|
to: '/my/settings',
|
||||||
icon: faCog,
|
icon: faCog,
|
||||||
}, null, ...accountItems, {
|
}, null, ...accountItems, {
|
||||||
type: 'item',
|
|
||||||
icon: faPlus,
|
icon: faPlus,
|
||||||
text: this.$t('addAcount'),
|
text: this.$t('addAcount'),
|
||||||
action: () => {
|
action: () => {
|
||||||
this.$root.menu({
|
this.$root.menu({
|
||||||
items: [{
|
items: [{
|
||||||
type: 'item',
|
|
||||||
text: this.$t('existingAcount'),
|
text: this.$t('existingAcount'),
|
||||||
action: () => { this.addAcount(); },
|
action: () => { this.addAcount(); },
|
||||||
}, {
|
}, {
|
||||||
type: 'item',
|
|
||||||
text: this.$t('createAccount'),
|
text: this.$t('createAccount'),
|
||||||
action: () => { this.createAccount(); },
|
action: () => { this.createAccount(); },
|
||||||
}],
|
}],
|
||||||
|
|
|
@ -83,17 +83,14 @@ export default Vue.extend({
|
||||||
} else {
|
} else {
|
||||||
this.$root.menu({
|
this.$root.menu({
|
||||||
items: [{
|
items: [{
|
||||||
type: 'item',
|
|
||||||
text: this.$t('rename'),
|
text: this.$t('rename'),
|
||||||
icon: faICursor,
|
icon: faICursor,
|
||||||
action: this.rename
|
action: this.rename
|
||||||
}, {
|
}, {
|
||||||
type: 'item',
|
|
||||||
text: this.file.isSensitive ? this.$t('unmarkAsSensitive') : this.$t('markAsSensitive'),
|
text: this.file.isSensitive ? this.$t('unmarkAsSensitive') : this.$t('markAsSensitive'),
|
||||||
icon: this.file.isSensitive ? faEye : faEyeSlash,
|
icon: this.file.isSensitive ? faEye : faEyeSlash,
|
||||||
action: this.toggleSensitive
|
action: this.toggleSensitive
|
||||||
}, null, {
|
}, null, {
|
||||||
type: 'item',
|
|
||||||
text: this.$t('copyUrl'),
|
text: this.$t('copyUrl'),
|
||||||
icon: faLink,
|
icon: faLink,
|
||||||
action: this.copyUrl
|
action: this.copyUrl
|
||||||
|
@ -105,7 +102,6 @@ export default Vue.extend({
|
||||||
icon: faDownload,
|
icon: faDownload,
|
||||||
download: this.file.name
|
download: this.file.name
|
||||||
}, null, {
|
}, null, {
|
||||||
type: 'item',
|
|
||||||
text: this.$t('delete'),
|
text: this.$t('delete'),
|
||||||
icon: faTrashAlt,
|
icon: faTrashAlt,
|
||||||
action: this.deleteFile
|
action: this.deleteFile
|
||||||
|
@ -113,11 +109,9 @@ export default Vue.extend({
|
||||||
type: 'nest',
|
type: 'nest',
|
||||||
text: this.$t('contextmenu.else-files'),
|
text: this.$t('contextmenu.else-files'),
|
||||||
menu: [{
|
menu: [{
|
||||||
type: 'item',
|
|
||||||
text: this.$t('contextmenu.set-as-avatar'),
|
text: this.$t('contextmenu.set-as-avatar'),
|
||||||
action: this.setAsAvatar
|
action: this.setAsAvatar
|
||||||
}, {
|
}, {
|
||||||
type: 'item',
|
|
||||||
text: this.$t('contextmenu.set-as-banner'),
|
text: this.$t('contextmenu.set-as-banner'),
|
||||||
action: this.setAsBanner
|
action: this.setAsBanner
|
||||||
}]
|
}]
|
||||||
|
|
Loading…
Reference in a new issue