aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_settings/user_settings.js
diff options
context:
space:
mode:
authorMaxim Filippov <colixer@gmail.com>2019-02-18 00:01:18 +0300
committerMaxim Filippov <colixer@gmail.com>2019-02-28 04:05:54 +0300
commitc71f411ad6593a496a041505f8a6642a4ae55eea (patch)
tree2eb310a9df90cc985833c13ea0ece9fede82a92b /src/components/user_settings/user_settings.js
parentafbe524a2e7fa7002c4b1f5883e08b2d135a2eda (diff)
Show only "app_name" and "valid_until" (OAuth tokens table)
Diffstat (limited to 'src/components/user_settings/user_settings.js')
-rw-r--r--src/components/user_settings/user_settings.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/components/user_settings/user_settings.js b/src/components/user_settings/user_settings.js
index 5e972d82..e7a961f1 100644
--- a/src/components/user_settings/user_settings.js
+++ b/src/components/user_settings/user_settings.js
@@ -1,11 +1,6 @@
-<<<<<<< HEAD
import { compose } from 'vue-compose'
import unescape from 'lodash/unescape'
import get from 'lodash/get'
-=======
-import { unescape, truncate } from 'lodash'
->>>>>>> Add OAuth Tokens management to settings
-
import TabSwitcher from '../tab_switcher/tab_switcher.js'
import ImageCropper from '../image_cropper/image_cropper.vue'
import StyleSwitcher from '../style_switcher/style_switcher.vue'
@@ -94,20 +89,17 @@ const UserSettings = {
direct: { selected: this.newDefaultScope === 'direct' }
}
},
-<<<<<<< HEAD
currentSaveStateNotice () {
return this.$store.state.interface.settings.currentSaveStateNotice
-=======
+ },
oauthTokens () {
return this.$store.state.oauthTokens.tokens.map(oauthToken => {
return {
id: oauthToken.id,
- token: truncate(oauthToken.token, { length: 15 }),
- refreshToken: truncate(oauthToken.refresh_token, { length: 15 }),
+ appName: oauthToken.app_name,
validUntil: new Date(oauthToken.valid_until).toLocaleDateString()
}
})
->>>>>>> Add OAuth Tokens management to settings
}
},
methods: {