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
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/NewMessageForm/NewMessageForm.vue')
-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>