From acf3fd5d91b41cfed08d70c63eab7feb79769a10 Mon Sep 17 00:00:00 2001 From: Shpuld Shpuldson Date: Wed, 2 Aug 2017 22:09:40 +0300 Subject: [PATCH] Add new user-settings component/route, add options to change name, bio, avatar, banner and bg. Add those options to api service and backend interactor service. --- src/App.scss | 5 + .../user_card_content/user_card_content.vue | 8 + src/components/user_panel/user_panel.vue | 1 + src/components/user_settings/user_settings.js | 145 ++++++++++++++++++ .../user_settings/user_settings.vue | 90 +++++++++++ src/main.js | 4 +- src/services/api/api.service.js | 68 ++++++++ .../backend_interactor_service.js | 7 + 8 files changed, 327 insertions(+), 1 deletion(-) create mode 100644 src/components/user_settings/user_settings.js create mode 100644 src/components/user_settings/user_settings.vue diff --git a/src/App.scss b/src/App.scss index 15c908d938..23f7304fe5 100644 --- a/src/App.scss +++ b/src/App.scss @@ -42,6 +42,11 @@ button{ &:hover { box-shadow: 0px 0px 4px rgba(255, 255, 255, 0.3); } + + &:disabled { + cursor: not-allowed; + opacity: 0.5; + } } .container { diff --git a/src/components/user_card_content/user_card_content.vue b/src/components/user_card_content/user_card_content.vue index ff1b108c57..1c044f9ae4 100644 --- a/src/components/user_card_content/user_card_content.vue +++ b/src/components/user_card_content/user_card_content.vue @@ -2,6 +2,9 @@