aboutsummaryrefslogtreecommitdiff
path: root/src/components/settings_modal/helpers/choice_setting.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2022-08-22 21:32:31 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2022-08-22 21:32:31 +0000
commit8e97a40c700797819bf92c61398daff230404228 (patch)
treef5b529fa4acea50092db7229724cbd02f845928b /src/components/settings_modal/helpers/choice_setting.js
parent4e2feae8686c7ff7cbaec35d0c8e07f0a696c2dd (diff)
parenta29835375a62549410a7df7922f8eb3f9b391487 (diff)
Merge branch 'allow-application-width-configuration' into 'develop'
Allow application width configuration See merge request pleroma/pleroma-fe!1533
Diffstat (limited to 'src/components/settings_modal/helpers/choice_setting.js')
-rw-r--r--src/components/settings_modal/helpers/choice_setting.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/settings_modal/helpers/choice_setting.js b/src/components/settings_modal/helpers/choice_setting.js
index 4677d4c1..3da559fe 100644
--- a/src/components/settings_modal/helpers/choice_setting.js
+++ b/src/components/settings_modal/helpers/choice_setting.js
@@ -43,6 +43,9 @@ export default {
methods: {
update (e) {
set(this.$parent, this.path, e)
+ },
+ reset () {
+ set(this.$parent, this.path, this.defaultState)
}
}
}