From 9f094a08ccf7d3ca23f528598519e977284ef103 Mon Sep 17 00:00:00 2001 From: Jiiks Date: Wed, 31 Jan 2018 13:35:38 +0200 Subject: [PATCH] Plugin settings modal --- .../ui/components/bd/PluginSettingsModal.vue | 71 +++++++++++++++++++ client/src/ui/components/bd/PluginsView.vue | 7 +- client/src/ui/components/common/Modal.vue | 2 +- 3 files changed, 77 insertions(+), 3 deletions(-) create mode 100644 client/src/ui/components/bd/PluginSettingsModal.vue diff --git a/client/src/ui/components/bd/PluginSettingsModal.vue b/client/src/ui/components/bd/PluginSettingsModal.vue new file mode 100644 index 00000000..ad1932cc --- /dev/null +++ b/client/src/ui/components/bd/PluginSettingsModal.vue @@ -0,0 +1,71 @@ +/** + * BetterDiscord Plugin Settings Modal Component + * Copyright (c) 2015-present Jiiks/JsSucks - https://github.com/Jiiks / https://github.com/JsSucks + * All rights reserved. + * https://betterdiscord.net + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. +*/ + + + \ No newline at end of file diff --git a/client/src/ui/components/bd/PluginsView.vue b/client/src/ui/components/bd/PluginsView.vue index 2f093f4c..873141f1 100644 --- a/client/src/ui/components/bd/PluginsView.vue +++ b/client/src/ui/components/bd/PluginsView.vue @@ -44,6 +44,7 @@ import { PluginManager } from 'modules'; import { SettingsWrapper } from './'; import PluginCard from './PluginCard.vue'; + import PluginSettingsModal from './PluginSettingsModal.vue'; import Refresh from 'vue-material-design-icons/refresh.vue'; export default { @@ -55,7 +56,7 @@ } }, components: { - SettingsWrapper, PluginCard, Refresh + SettingsWrapper, PluginCard, PluginSettingsModal, Refresh }, methods: { showLocal() { @@ -91,7 +92,9 @@ } })(); }, - showSettings() { } + showSettings(plugin) { + this.settingsOpen = plugin; + } } } diff --git a/client/src/ui/components/common/Modal.vue b/client/src/ui/components/common/Modal.vue index 8d74e700..329cb0fc 100644 --- a/client/src/ui/components/common/Modal.vue +++ b/client/src/ui/components/common/Modal.vue @@ -29,7 +29,7 @@