diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-11-12 21:12:28 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-11-21 15:23:39 +0100 |
commit | 62c68bb0690ed464494edac0b21af5fd4b057a2a (patch) | |
tree | 098527513e9327c3c97b06f11eac607a9274e26a /src/mixins | |
parent | 3a3cf046b9661f84d6115a8367e853fa43713edf (diff) |
Add composer component with emoji picker and basic @-mentions
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src/mixins')
-rw-r--r-- | src/mixins/currentUserMixin.js | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/mixins/currentUserMixin.js b/src/mixins/currentUserMixin.js new file mode 100644 index 00000000..231a2e07 --- /dev/null +++ b/src/mixins/currentUserMixin.js @@ -0,0 +1,32 @@ +/* + * @copyright Copyright (c) 2018 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/>. + * + */ + +export default { + computed: { + currentUser: function() { + return OC.getCurrentUser() + }, + socialId: function() { + return '@' + OC.getCurrentUser().uid + '@' + OC.getHost() + }, + } +}; |