summaryrefslogtreecommitdiffstats
path: root/src/mixins
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-01-10 19:42:05 +0100
committerJulius Härtl <jus@bitgrid.net>2019-02-20 21:05:24 +0100
commit80b7c572215e4f7d2efabbe88a5669140d33834a (patch)
tree4020b23e4e32e52ce541d30b350cd19db387a03f /src/mixins
parenta4a5b29550cbe75d4fd0ea4b0c1eed5687821f41 (diff)
Add UI to reply to a post
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src/mixins')
-rw-r--r--src/mixins/popoverMenu.js42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/mixins/popoverMenu.js b/src/mixins/popoverMenu.js
new file mode 100644
index 00000000..cbbca5d4
--- /dev/null
+++ b/src/mixins/popoverMenu.js
@@ -0,0 +1,42 @@
+/*
+ * @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
+ *
+ * @author Julius Härtl <jus@bitgrid.net>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+import { PopoverMenu } from 'nextcloud-vue'
+
+export default {
+ components: {
+ PopoverMenu
+ },
+ data() {
+ return {
+ menuOpened: false
+ }
+ },
+ methods: {
+ togglePopoverMenu() {
+ this.menuOpened = !this.menuOpened
+ },
+ hidePopoverMenu() {
+ this.menuOpened = false
+ }
+ }
+}