diff --git a/src/web/app/common/views/components/messaging-form.vue b/src/web/app/common/views/components/messaging-form.vue index bf4dd17baa..18d45790e4 100644 --- a/src/web/app/common/views/components/messaging-form.vue +++ b/src/web/app/common/views/components/messaging-form.vue @@ -62,7 +62,7 @@ export default Vue.extend({ send() { this.sending = true; - this.$root.$data.os.api('messaging/messages/create', { + (this as any).api('messaging/messages/create', { user_id: this.user.id, text: this.text }).then(message => { diff --git a/src/web/app/common/views/components/messaging-message.vue b/src/web/app/common/views/components/messaging-message.vue index b1afe7a690..6f44332aff 100644 --- a/src/web/app/common/views/components/messaging-message.vue +++ b/src/web/app/common/views/components/messaging-message.vue @@ -8,7 +8,7 @@
%i18n:common.tags.mk-messaging-message.is-read%
{ parent.usage.toFixed(1) }% %i18n:desktop.tags.mk-drive-browser-window.used%
- %fa:cloud%%i18n:desktop.tags.mk-drive-browser-window.drive% -%fa:i-cursor%%i18n:desktop.tags.mk-drive-browser-file-contextmenu.rename%
-%fa:link%%i18n:desktop.tags.mk-drive-browser-file-contextmenu.copy-url%
-%fa:R trash-alt%%i18n:common.delete%
-%i18n:desktop.tags.mk-drive-browser-file-contextmenu.else-files%%fa:caret-right%
-%i18n:desktop.tags.mk-drive-browser-file-contextmenu.set-as-avatar%
-%i18n:desktop.tags.mk-drive-browser-file-contextmenu.set-as-banner%
-%i18n:desktop.tags.mk-drive-browser-file-contextmenu.open-in-app%...%fa:caret-right%
-%i18n:desktop.tags.mk-drive-browser-file-contextmenu.add-app%...
-%fa:arrow-right%%i18n:desktop.tags.mk-drive-browser-folder-contextmenu.move-to-this-folder%
-%fa:R window-restore%%i18n:desktop.tags.mk-drive-browser-folder-contextmenu.show-in-new-window%
-%fa:i-cursor%%i18n:desktop.tags.mk-drive-browser-folder-contextmenu.rename%
-%fa:R trash-alt%%i18n:common.delete%
-Token: {{ $root.$data.os.i.token }}
Token: {{ os.i.token }}
%i18n:desktop.tags.mk-api-info.intro%
%fa:exclamation-triangle%%i18n:desktop.tags.mk-api-info.caution%
%i18n:desktop.tags.mk-api-info.regeneration-of-token%
@@ -16,7 +16,7 @@ export default Vue.extend({ methods: { regenerateToken() { passwordDialog('%i18n:desktop.tags.mk-api-info.enter-password%', password => { - this.$root.$data.os.api('i/regenerate_token', { + (this as any).api('i/regenerate_token', { password: password }); }); diff --git a/src/web/app/desktop/views/components/context-menu-menu.vue b/src/web/app/desktop/views/components/context-menu-menu.vue new file mode 100644 index 0000000000..423ea0a1f0 --- /dev/null +++ b/src/web/app/desktop/views/components/context-menu-menu.vue @@ -0,0 +1,113 @@ + +{{ item.text }}
+ + +{{ item.text }}...%fa:caret-right%
+%fa:R folder%%i18n:desktop.tags.mk-drive-browser-base-contextmenu.create-folder%
-%fa:upload%%i18n:desktop.tags.mk-drive-browser-base-contextmenu.upload%
-%fa:cloud-upload-alt%%i18n:desktop.tags.mk-drive-browser-base-contextmenu.url-upload%
-%i18n:desktop.tags.mk-drive-browser-file.avatar%
%i18n:desktop.tags.mk-drive-browser-file.banner%
- { file.name.lastIndexOf('.') != -1 ? file.name.substr(0, file.name.lastIndexOf('.')) : file.name } - { file.name.substr(file.name.lastIndexOf('.')) } + {{ file.name.lastIndexOf('.') != -1 ? file.name.substr(0, file.name.lastIndexOf('.')) : file.name }} + {{ file.name.substr(file.name.lastIndexOf('.')) }}