Merge pull request #70 from samuelthomas2774/fix-close-plugin-settings-button
Made the close button in the plugin settings modal work
This commit is contained in:
commit
5fe333c3d3
|
@ -9,7 +9,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Modal :headerText="plugin.name + ' Settings'" :close="() => { }">
|
<Modal :headerText="plugin.name + ' Settings'" :close="close">
|
||||||
<div slot="body" class="bd-plugin-settings-body">
|
<div slot="body" class="bd-plugin-settings-body">
|
||||||
<PluginSetting v-for="setting in configCache" :key="setting.id" :setting="setting" :change="settingChange"/>
|
<PluginSetting v-for="setting in configCache" :key="setting.id" :setting="setting" :change="settingChange"/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -26,7 +26,10 @@
|
||||||
import PluginSetting from './pluginsetting/PluginSetting.vue';
|
import PluginSetting from './pluginsetting/PluginSetting.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: ['plugin'],
|
props: [
|
||||||
|
'plugin',
|
||||||
|
'close'
|
||||||
|
],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
changed: false,
|
changed: false,
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="settingsOpen !== null" class="bd-backdrop" @click="settingsOpen = null"></div>
|
<div v-if="settingsOpen !== null" class="bd-backdrop" @click="settingsOpen = null"></div>
|
||||||
<PluginSettingsModal v-if="settingsOpen !== null" :plugin="settingsOpen" />
|
<PluginSettingsModal v-if="settingsOpen !== null" :plugin="settingsOpen" :close="closeSettings" />
|
||||||
</SettingsWrapper>
|
</SettingsWrapper>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -92,6 +92,9 @@
|
||||||
},
|
},
|
||||||
showSettings(plugin) {
|
showSettings(plugin) {
|
||||||
this.settingsOpen = plugin;
|
this.settingsOpen = plugin;
|
||||||
|
},
|
||||||
|
closeSettings() {
|
||||||
|
this.settingsOpen = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue