Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulien Veyssier <eneiluj@posteo.net>2021-12-21 18:05:59 +0300
committerJulien Veyssier <eneiluj@posteo.net>2022-01-03 12:27:38 +0300
commited2f474d53e858f61edcf37f227768a25a40762d (patch)
treea71c5aa54b6517f42975c200816c2ccaf79d452e /src
parent81aebeec9b593e598009b797a27550dd295c848a (diff)
adjustments after rebase
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Diffstat (limited to 'src')
-rw-r--r--src/components/MenuBar.vue22
1 files changed, 4 insertions, 18 deletions
diff --git a/src/components/MenuBar.vue b/src/components/MenuBar.vue
index 1f1a4b045..58ef2d67f 100644
--- a/src/components/MenuBar.vue
+++ b/src/components/MenuBar.vue
@@ -245,20 +245,10 @@ export default {
}
},
allIcons() {
- let icons = this.icons
- if (!this.isPublic) {
- icons = [...icons, {
- label: t('text', 'Insert image'),
- class: 'icon-image',
- isActive: () => {
- },
- action: (commands) => {
- this.showImagePrompt(commands.image)
- },
- }]
- }
-
- return [...icons, {
+ return [...this.icons, {
+ label: t('text', 'Insert image'),
+ class: 'icon-image',
+ }, {
label: t('text', 'Formatting help'),
class: 'icon-info',
isActive: () => {
@@ -314,10 +304,6 @@ export default {
return this.lastImagePath
|| this.filePath.split('/').slice(0, -1).join('/')
},
- sharingToken() {
- return document.getElementById('sharingToken')
- && document.getElementById('sharingToken').value
- },
},
mounted() {
window.addEventListener('resize', this.getWindowWidth)