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

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarco Ambrosini <marcoambrosini@pm.me>2022-06-22 14:19:31 +0300
committerJoas Schilling <coding@schilljs.com>2022-08-31 09:15:36 +0300
commitac49d7b8c995dc1f00a9514a99be6bfeea8cce4a (patch)
treec05d3589cc7e00c86e195d07ed3c3d299c6b6ca2 /src
parent08c33e65c59b12a9e9cfa22306c668c3ce5b5668 (diff)
Add button to the attachments menu
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
Diffstat (limited to 'src')
-rw-r--r--src/components/NewMessageForm/NewMessageForm.vue12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/components/NewMessageForm/NewMessageForm.vue b/src/components/NewMessageForm/NewMessageForm.vue
index 90202bf2a..3a4a9383d 100644
--- a/src/components/NewMessageForm/NewMessageForm.vue
+++ b/src/components/NewMessageForm/NewMessageForm.vue
@@ -57,6 +57,12 @@
@click.prevent="handleFileShare">
{{ t('spreed', 'Share from Nextcloud FIXME') }}
</NcActionButton>
+ <NcActionButton v-if="canShareFiles"
+ :close-after-click="true"
+ @click.prevent="createTextFile">
+ <TextBox slot="icon" :size="20" />
+ {{ t('spreed', 'Create text file') }}
+ </NcActionButton>
<NcActionButton v-if="canCreatePoll"
:close-after-click="true"
@click.prevent="toggleSimplePollsEditor(true)">
@@ -166,6 +172,7 @@ import BellOff from 'vue-material-design-icons/BellOff.vue'
import AudioRecorder from './AudioRecorder/AudioRecorder.vue'
import SimplePollsEditor from './SimplePollsEditor/SimplePollsEditor.vue'
import Poll from 'vue-material-design-icons/Poll.vue'
+import TextBox from 'vue-material-design-icons/TextBox.vue'
const picker = getFilePickerBuilder(t('spreed', 'File to share'))
.setMultiSelect(false)
@@ -190,6 +197,7 @@ export default {
BellOff,
SimplePollsEditor,
Poll,
+ TextBox,
},
props: {
@@ -575,6 +583,10 @@ export default {
toggleSimplePollsEditor(value) {
this.showSimplePollsEditor = value
},
+
+ createTextFile() {
+ console.log('asdfsadfsd')
+ },
},
}
</script>